summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-05-04 16:00:42 +0200
committeremkael <emkael@tlen.pl>2016-05-04 16:29:12 +0200
commitb835177e60ec69677ef46935af291421078d667f (patch)
tree80f4e4580a6a82fd3095fc69d6557af14e1f3c1f
parentbdd798916cef168d3ce57e1039bf22cd617beff6 (diff)
* don't cache pages, just assets
-rw-r--r--http/.htaccess7
1 files changed, 4 insertions, 3 deletions
diff --git a/http/.htaccess b/http/.htaccess
index 4e671f3..bee3a09 100644
--- a/http/.htaccess
+++ b/http/.htaccess
@@ -12,7 +12,8 @@ RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1/ [L]
ExpiresActive On
-ExpiresDefault "access plus 10 minutes"
-<FilesMatch "\.(jpe?g|png|gif|js|css)$">
- ExpiresDefault "access plus 2 hours"
+ExpiresDefault "access plus 2 hours"
+<FilesMatch ".+?\.(?!(jpe?g|png|gif|js|css)$).+">
+ Header unset Last-Modified
+ Header set Cache-Control "private, max-age=0, no-cache"
</FilesMatch>