##// END OF EJS Templates
Merge pull request #7960 from parente/set-no-cache-header...
Min RK -
r20639:4799b7a9 merge
parent child Browse files
Show More
@@ -404,7 +404,7 b' class FileFindHandler(web.StaticFileHandler):'
404 # disable browser caching, rely on 304 replies for savings
404 # disable browser caching, rely on 304 replies for savings
405 if "v" not in self.request.arguments or \
405 if "v" not in self.request.arguments or \
406 any(self.request.path.startswith(path) for path in self.no_cache_paths):
406 any(self.request.path.startswith(path) for path in self.no_cache_paths):
407 self.add_header("Cache-Control", "no-cache")
407 self.set_header("Cache-Control", "no-cache")
408
408
409 def initialize(self, path, default_filename=None, no_cache_paths=None):
409 def initialize(self, path, default_filename=None, no_cache_paths=None):
410 self.no_cache_paths = no_cache_paths or []
410 self.no_cache_paths = no_cache_paths or []
General Comments 0
You need to be logged in to leave comments. Login now