Skip to content

Commit

Permalink
prevent html and plain text files from beeing cached in browsers and …
Browse files Browse the repository at this point in the history
…proxies by default
  • Loading branch information
phoenix-bjoern committed Jan 21, 2015
1 parent 2b16af7 commit 00b8940
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -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

</IfModule>

Expand Down
2 changes: 2 additions & 0 deletions pub/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -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

</IfModule>

Expand Down

0 comments on commit 00b8940

Please sign in to comment.