httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Galić <i.ga...@brainsware.org>
Subject Re: [users@httpd] Caching of files gif,css,js,jpg
Date Thu, 03 Feb 2011 12:33:58 GMT

----- "Petr Hracek" <phracek2@gmail.com> wrote:

> Dear users,
> 
> I am solving the caching of the images under apache 2.2 my
> configuration has actually following:
> 
> Here is the part of configuration file.
> <VirtualHost _default_:443>
> <IfModule mod_header.c>
>      Header unset ETag
> </IfModule>
> 
> FileETag None
> 
> <FilesMatch "\.(gif|jpe?g|png|css)$">
>     Allow from all
>     Satisfy Any
>     ExpiresActive on
>     ExpiresDefault "access plus 1 weeks"
> </FilesMatch>
> 
> <FilesMatch "\.(js)$">
>     Allow from all
>     Satisfy Any
>     ExpiresActive on
>     ExpiresDefault "access plus 2 days"
> </FilesMatch>
> 
> </VirtualHost>
> 
> Is it possible to define cache figure per session?
> Is this configuration correct?
> 
> Reason of the question is following:
> - Lets say the user connect to the system where the actuall situation
> is installed
> - Next day administrator will updated the system so that pictures
> will
> be updated. Pictures will have the same name

That's bad practice.
You should upload pictures with new names.

See Theo's presentation from last year's Apache Con:
http://lethargy.org/~jesus/writes/web-performance-boot-camp

> - Afterwards user which has been connected to the system had old
> picture taken from the system.
> 
> Is it right that my configuration of apache will occurs that user
> will
> see in case of css,gif updated after 1 week?
> How is it possible to handle that situation or is it relevant only to
> the browser side and not on the apache side?
> 
> Thank you in advance
> 
> -- 
> Best Regards / S pozdravem
> Petr Hracek

i

-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/

---------------------------------------------------------------------
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


Mime
View raw message