You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Matus UHLAR - fantomas <uh...@fantomas.sk> on 2010/09/20 13:14:20 UTC

Re: [users@httpd] Question about expires headers + php images returned without file extensions

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:
>
>     http://highvibenation.com/index.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42
>
> 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, uhlar@fantomas.sk ; http://www.fantomas.sk/
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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org