Skip to content

Commit 00b8940

Browse files
prevent html and plain text files from beeing cached in browsers and proxies by default
1 parent 2b16af7 commit 00b8940

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.htaccess

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@
167167
## http://developer.yahoo.com/performance/rules.html#expires
168168

169169
ExpiresDefault "access plus 1 year"
170+
ExpiresByType text/html A0
171+
ExpiresByType text/plain A0
170172

171173
</IfModule>
172174

pub/.htaccess

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@
153153
## http://developer.yahoo.com/performance/rules.html#expires
154154

155155
ExpiresDefault "access plus 1 year"
156+
ExpiresByType text/html A0
157+
ExpiresByType text/plain A0
156158

157159
</IfModule>
158160

0 commit comments

Comments
 (0)