Commit 5c6cb6d6 authored by Nicolas Wavrant's avatar Nicolas Wavrant

slaprunner: webrunner's webdav explicetly tells to user to not cache on different domain or user

parent 0d90b242
...@@ -125,7 +125,7 @@ recipe = hexagonit.recipe.download ...@@ -125,7 +125,7 @@ recipe = hexagonit.recipe.download
ignore-existing = true ignore-existing = true
url = ${:_profile_base_location_}/httpd_conf.in url = ${:_profile_base_location_}/httpd_conf.in
download-only = true download-only = true
md5sum = 112cf8ada9e5c4172fa6fc464df0fd3a md5sum = 40825ef2d259ae3b86dfd2f28f597d3a
filename = httpd_conf.in filename = httpd_conf.in
mode = 0644 mode = 0644
......
...@@ -85,6 +85,12 @@ Alias /share {{ parameters.runner_home }} ...@@ -85,6 +85,12 @@ Alias /share {{ parameters.runner_home }}
AuthType Basic AuthType Basic
AuthName "Webrunner Dav" AuthName "Webrunner Dav"
AuthUserFile "{{ parameters.htpasswd_file }}" AuthUserFile "{{ parameters.htpasswd_file }}"
# Prevent using the web browser cache if requesting the same document
# from different domains or with different users
Header set Cache-Control "private, max-age=0, must-revalidate"
Header set Vary "Origin,Cookie,Authorization"
<LimitExcept OPTIONS> <LimitExcept OPTIONS>
Require valid-user Require valid-user
</LimitExcept> </LimitExcept>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment