Force Apache to return Content Length 0 for HEAD requests

Viewed 448

I have an empty file and for some reason Apache refuses to return the content length with the value set to 0. When making a basic GET request, the Content Length is returned as 0, but for HEAD requests there is no Content Length header. How can I force Apache to return a content length of 0 for empty files?

I have attempted to use PHP and htaccess to achieve this, but PHP functions such as header does not work.

0 Answers
Related