]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
spk-spar-checker update custom_fragment
authorAndreas Gerstenberg <gerstenberg@pixelpark.com>
Fri, 20 Oct 2017 10:08:39 +0000 (12:08 +0200)
committerAndreas Gerstenberg <gerstenberg@pixelpark.com>
Fri, 20 Oct 2017 10:08:39 +0000 (12:08 +0200)
customer/spk-spar-checker/test.yaml

index ddf468ecc2360cfdcfbd4e00527fe9379ac18540..2f746c03a1ae8c30404624e67876b75617c454da 100644 (file)
@@ -76,8 +76,11 @@ infra::profile::apache::pp_vhosts:
         directoryindex: 'index.html'
         custom_fragment: |
           AddType text/plain .tmpl
-          ExpiresActive On
-          ExpiresDefault A0
+              <FilesMatch "\.(html|tmpl|js)$">
+                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:
@@ -108,11 +111,6 @@ infra::profile::apache::pp_vhosts:
               - '^(opera_160.png)$ - [L]'
               - '.* /404.html [R=404,L]'
 
-      - provider: filesmatch
-        path: '\.(html|tmpl|js)$'
-        headers:
-          - 'set Cache-Control "no-cache, no-store, must-revalidate, max-age=0, proxy-revalidate, no-transform"'
-          - 'set Pragma "no-cache"'
 
       - provider: location
         path: '/'