From: Andreas Gerstenberg Date: Fri, 20 Oct 2017 10:16:20 +0000 (+0200) Subject: spk-spar-checker udpate configs X-Git-Tag: v0.1.0~2232 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=1eb3539c6a40e84afbffea5d83fbf1860c2a4c64;p=pixelpark%2Fhiera.git spk-spar-checker udpate configs --- diff --git a/customer/spk-spar-checker/production.yaml b/customer/spk-spar-checker/production.yaml index ff01c7e0..713a3336 100644 --- a/customer/spk-spar-checker/production.yaml +++ b/customer/spk-spar-checker/production.yaml @@ -76,7 +76,16 @@ infra::profile::apache::pp_vhosts: allow_override: - None directoryindex: 'index.html' - custom_fragment: 'AddType text/plain .tmpl' + custom_fragment: | + AddType text/plain .tmpl + ExpiresActive On + ExpiresDefault A0 + + ExpiresDefault A0 + Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0, proxy-revalidate, no-transform" + Header set Pragma "no-cache" + + rewrites: - comment: 'frontend root rewrite' rewrite_cond: @@ -85,10 +94,11 @@ infra::profile::apache::pp_vhosts: - '.* /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]' diff --git a/customer/spk-spar-checker/test.yaml b/customer/spk-spar-checker/test.yaml index 2f746c03..daed4920 100644 --- a/customer/spk-spar-checker/test.yaml +++ b/customer/spk-spar-checker/test.yaml @@ -76,7 +76,10 @@ infra::profile::apache::pp_vhosts: directoryindex: 'index.html' custom_fragment: | AddType text/plain .tmpl + ExpiresActive On + ExpiresDefault A0 + ExpiresDefault A0 Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0, proxy-revalidate, no-transform" Header set Pragma "no-cache" @@ -111,7 +114,6 @@ infra::profile::apache::pp_vhosts: - '^(opera_160.png)$ - [L]' - '.* /404.html [R=404,L]' - - provider: location path: '/' limit_except: