diff --git a/software/slaprunner/common.cfg b/software/slaprunner/common.cfg index d9ab508a8ef75babc046762f3a806a55abc9743e..68e129c8f4b0d8854a1e53fd514c0ac9e3a94227 100644 --- a/software/slaprunner/common.cfg +++ b/software/slaprunner/common.cfg @@ -125,7 +125,7 @@ recipe = hexagonit.recipe.download ignore-existing = true url = ${:_profile_base_location_}/httpd_conf.in download-only = true -md5sum = 112cf8ada9e5c4172fa6fc464df0fd3a +md5sum = 40825ef2d259ae3b86dfd2f28f597d3a filename = httpd_conf.in mode = 0644 diff --git a/software/slaprunner/httpd_conf.in b/software/slaprunner/httpd_conf.in index 4fdbbc817cb6974fb45baf9396d698917c4f2d0e..8af13b1f6107b19141a2394636604bc5c8b04dda 100644 --- a/software/slaprunner/httpd_conf.in +++ b/software/slaprunner/httpd_conf.in @@ -85,6 +85,12 @@ Alias /share {{ parameters.runner_home }} AuthType Basic AuthName "Webrunner Dav" 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" + Require valid-user