----- "7BOOK" <wantsth@xxxxxxxxxxx> wrote: > Hi Igor GaliÄ, > > Thanks a lot! Great help to me. > And I have another question: is there a way for proxy (httpd.conf) to > detect > that some static files are updated on real server ? I am realy > appreciated! Theo gives some really ideas in his presentation ``Operating at Scale'' http://lethargy.org/~jesus/writes/operating-at-scale To summarize: *always* send out Last-Modified and or ETag Headers. New versions of CSS or JS can be promoted with mod_rewrite, by bumping a virtual version number: RewriteEngine On RewriteRule $/(\d+).(.*)\.(css|js)(.*) /$2.$3($4) With images you should just upload a new version. (That's Theo's words roughly summarized.) > Michael bye, i > > Igor GaliÄ wrote: > > > > > > ----- "7BOOK" <wantsth@xxxxxxxxxxx> wrote: > > > >> Hi Tom, > >> > >> as this topic discussed, > >> (1).I tried following, it does not at all > >> Header set Cache-Control "no-cache" > >> <FilesMatch "\.(gif|jpg|jpeg|png|js|css|swf)$"> > >> Header set Cache-Control "max-age=3600" > >> </FilesMatch> > >> (2).I am using proxy disk cache, I tried kinds of regex format > using > >> FilesMatch, all failed > >> (3).Is there a solution to set header fields inside httpd.conf > (not > >> .htaccess) ? > > > > I'm doing it vice versa: > > > > http://blag.esotericsystems.at/2010/02/introducing-more-caching/ > > > >> Thanks in advance! > >> > >> Michael > >> wantsth@xxxxxxxxxxx > > > > i > > > > -- > > Igor GaliÄ > > > > Tel: +43 (0) 664 886 22 883 > > Mail: i.galic@xxxxxxxxxxxxxx > > 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@xxxxxxxxxxxxxxxx > > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > > > > > > > -- > View this message in context: > http://old.nabble.com/How-can-I-configure-setting-a-Header-in-httpd.conf-based-on-content-type--tp27850927p30068872.html > Sent from the Apache HTTP Server - Users mailing list archive at > Nabble.com. > > > --------------------------------------------------------------------- > 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@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx -- Igor GaliÄ Tel: +43 (0) 664 886 22 883 Mail: i.galic@xxxxxxxxxxxxxx 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx