httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Favor <>
Subject [users@httpd] Question about expires headers + php images returned without file extensions
Date Mon, 13 Sep 2010 19:12:45 GMT
I was just noticing the return of phpinfo returns .gif & .jpg
images by way of this syntax:


as in this:

Firefox picks up the correct Content-Type looking at
output from Live HTTP Headers and for the life of me
I've been unable to come up with an expires.conf file
syntax to set a far future header for objects returned
like this.

I'd have thought something like this would work:

     expiresbytype image/gif "access plus 1 years"
     expiresbytype image/png "access plus 1 years"
     expiresbytype image/jpeg "access plus 1 years"
     expiresbytype image/jpg "access plus 1 years"

Or at least this would work:

     ExpiresDefault "access plus 1 years"

Neither works.

Suggestions welcome.

Love feeling your best ever, all day, every day?
Click for the easy way!

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message