allow_override:
- None
directoryindex: 'index.html'
- custom_fragment: 'AddType text/plain .tmpl'
+ custom_fragment: |
+ AddType text/plain .tmpl
+ ExpiresActive On
+ ExpiresDefault A0
+ <FilesMatch "\.(html|tmpl|js)$">
+ ExpiresDefault A0
+ Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0, proxy-revalidate, no-transform"
+ Header set Pragma "no-cache"
+ </FilesMatch>
+
rewrites:
- comment: 'frontend root rewrite'
rewrite_cond:
- '.* /index.html [END]'
- comment: 'frontend rewrites'
rewrite_rule:
- - '^code/(modernizr-custom.js|spar-checker-min.css|spar-checker-min.js|selection.json)$ - [L]'
- '^code/(modernizr-custom|spar-checker-min|selection)-v[0-9]{1,4}\.(js|css|json)$ /code/$1.$2 [END]'
+ - '^code/(modernizr-custom.js|spar-checker-min.css|spar-checker-min.js|selection.json)$ - [L]'
- '^media/(.*)-v[0-9]{1,4}\.(svg|jpg|png|gif)$ /media/$1.$2 [END]'
- '^media/(.*)\.(svg|jpg|png|gif)$ - [L]'
+ - '^code/(.*)-v[0-9]{1,4}\.(tmpl|eot|svg|ttf|woff|woff2)$ /code/$1.$2 [END]'
- '^code/.*\.(tmpl|eot|svg|ttf|woff|woff2)$ - [L]'
- '^((401|403|404|500)\.html)$ - [L]'
- '^(favicon-[0-9]{2}.ico)$ - [L]'
directoryindex: 'index.html'
custom_fragment: |
AddType text/plain .tmpl
+ ExpiresActive On
+ ExpiresDefault A0
<FilesMatch "\.(html|tmpl|js)$">
+ ExpiresDefault A0
Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
</FilesMatch>
- '^(opera_160.png)$ - [L]'
- '.* /404.html [R=404,L]'
-
- provider: location
path: '/'
limit_except: