You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by dm...@apache.org on 2020/10/01 17:33:36 UTC

[ignite-website] branch master updated: updated instructions to avoid aggresive cache for html/txt files (#32)

This is an automated email from the ASF dual-hosted git repository.

dmagda pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-website.git


The following commit(s) were added to refs/heads/master by this push:
     new bf82d0b  updated instructions to avoid aggresive cache for html/txt files (#32)
bf82d0b is described below

commit bf82d0be2195223acdda80493fa89b05fb183089
Author: Mauricio Stekl <ma...@stekl.org>
AuthorDate: Thu Oct 1 14:33:29 2020 -0300

    updated instructions to avoid aggresive cache for html/txt files (#32)
    
    Co-authored-by: Mauricio Stekl <ma...@gridgain.com>
---
 .htaccess | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/.htaccess b/.htaccess
index cc7c06a..f30ce63 100644
--- a/.htaccess
+++ b/.htaccess
@@ -32,23 +32,18 @@ Header append Vary User-Agent env=!dont-vary
 ExpiresActive On
 ExpiresDefault "access plus 1 week"
 
-ExpiresByType text/css "access plus 6 months"
+ExpiresByType text/css "access plus 1 month"
+ExpiresByType text/javascript "access plus 1 month"
 
 ExpiresByType text/xml "access plus 2 days" 
 
 ExpiresByType image/x-icon "access plus 6 months"
-
-ExpiresByType text/html "access plus 2 days"
-
-ExpiresByType text/javascript "access plus 6 months"
-
 ExpiresByType image/jpg "access plus 6 months"
 ExpiresByType image/jpeg "access plus 6 months"
 ExpiresByType image/gif "access plus 6 months"
 ExpiresByType image/png "access plus 6 months"
 ExpiresByType image/svg+xml "access plus 6 months" 
 
-ExpiresByType text/plain "access plus 6 months"
 ExpiresByType application/pdf "access plus 6 months"
 
 ExpiresByType font/eot "access plus 6 months"
@@ -65,12 +60,14 @@ ExpiresByType font/woff2 "access plus 6 months"
 Header set Cache-Control "max-age=31536000, public"
 </FilesMatch>
 
-<FilesMatch "\.(xml|txt)$">
+<FilesMatch "\.(xml)$">
 Header set Cache-Control "max-age=172800, public, must-revalidate"
 </FilesMatch>
 
-<FilesMatch "\.(html|htm)$">
-Header set Cache-Control "max-age=7200, must-revalidate"
+<FilesMatch "\.(html|htm|txt)$">
+Header set Cache-Control "no-cache, no-store, must-revalidate"
+Header set Pragma "no-cache"
+Header set Expires 0
 </FilesMatch>
 
 </IfModule>