httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matus UHLAR - fantomas <>
Subject Re: [users@httpd] Question about expires headers + php images returned without file extensions
Date Mon, 20 Sep 2010 11:14:20 GMT
On 13.09.10 14:12, David Favor wrote:
> I was just noticing the return of phpinfo returns .gif & .jpg
> images by way of this syntax:
>     http://$domain.$tld/index.php?=$objectid
> 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"

phpinfo() is just a function, it does not set http headers. The page above
generates many headers to prevent caching, I'd search what is causing that.
Matus UHLAR - fantomas, ;
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I drive way too fast to worry about cholesterol. 

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