顯示具有 tomcat cluster 標籤的文章。 顯示所有文章
顯示具有 tomcat cluster 標籤的文章。 顯示所有文章

2012年9月24日 星期一

httpd 使用 mod_jk 時設 no-cache 的方式


<LocationMatch "^.*$">
FileETag None
<ifModule mod_headers.c>
Header unset ETag
Header unset Etag
Header unset Last-Modified
Header always set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header always set Pragma "no-cache"
Header always set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</ifModule>
</LocationMatch>

不可以用  filesMatch
因為用 mod_jk 的時候 apache 並不是真的去找檔案。