----- "Petr Hracek" <phrac...@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.ga...@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-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to