From 00b89402ba12fedabd90a19ed55b88655b4f1f50 Mon Sep 17 00:00:00 2001 From: PhoenixPM - BK Date: Wed, 21 Jan 2015 11:26:58 +0100 Subject: [PATCH 1/2] prevent html and plain text files from beeing cached in browsers and proxies by default --- .htaccess | 2 ++ pub/.htaccess | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.htaccess b/.htaccess index f1ef8719ba1a8..bb7063c239a85 100644 --- a/.htaccess +++ b/.htaccess @@ -167,6 +167,8 @@ ## http://developer.yahoo.com/performance/rules.html#expires ExpiresDefault "access plus 1 year" + ExpiresByType text/html A0 + ExpiresByType text/plain A0 diff --git a/pub/.htaccess b/pub/.htaccess index b00b2127289e3..be0fa29b89a07 100644 --- a/pub/.htaccess +++ b/pub/.htaccess @@ -153,6 +153,8 @@ ## http://developer.yahoo.com/performance/rules.html#expires ExpiresDefault "access plus 1 year" + ExpiresByType text/html A0 + ExpiresByType text/plain A0 From 6efe85c26e412e5c761b48826607a013a81108e4 Mon Sep 17 00:00:00 2001 From: PhoenixPM - BK Date: Wed, 21 Jan 2015 11:38:06 +0100 Subject: [PATCH 2/2] added mod_default fix for html and static txt files to more .htaccess files --- .htaccess.sample | 2 ++ dev/tests/functional/.htaccess | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.htaccess.sample b/.htaccess.sample index 47944ce310559..5dc6f025267ac 100644 --- a/.htaccess.sample +++ b/.htaccess.sample @@ -164,6 +164,8 @@ ## http://developer.yahoo.com/performance/rules.html#expires ExpiresDefault "access plus 1 year" + ExpiresByType text/html A0 + ExpiresByType text/plain A0 diff --git a/dev/tests/functional/.htaccess b/dev/tests/functional/.htaccess index db0b8f66ad000..0fe8af43b8759 100644 --- a/dev/tests/functional/.htaccess +++ b/dev/tests/functional/.htaccess @@ -170,6 +170,8 @@ ## http://developer.yahoo.com/performance/rules.html#expires ExpiresDefault "access plus 1 year" + ExpiresByType text/html A0 + ExpiresByType text/plain A0 @@ -191,4 +193,4 @@ ## If running in cluster environment, uncomment this ## http://developer.yahoo.com/performance/rules.html#etags - #FileETag none \ No newline at end of file + #FileETag none