728x90
1. 확장자별 no-caching 설정
<filesMatch "\.(html|htm|js|css)$">
FileETag None
<ifModule mod_headers.c>
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Thu, 1 Jan 1970 00:00:00 GMT"
</ifModule>
</filesMatch>
2. 디렉토리별 no-caching 설정
<Directory /some/real/path/to/tmp>
Header Set Pragma "no-cache"
Header Set Expires "Thu, 1 Jan 1970 00:00:00 GMT"
Header Set Cache-Control "max-age=0, no-store, no-cache, must-revalidate"
Header Unset ETag
FileETag None
</Directory>
728x90
'미들웨어 > Apache' 카테고리의 다른 글
[Certbot / Let's encrypt] SSL인증서 적용하기 (0) | 2020.04.12 |
---|
댓글