From 999c9de4d319cdb6554affba0b49138633d0bc6b Mon Sep 17 00:00:00 2001 From: vfilippov Date: Wed, 5 Oct 2011 15:49:36 +0000 Subject: [PATCH] Bug 87501 - Add must-revalidate headers git-svn-id: svn://svn.office.custis.ru/3rdparty/viewvc.org/trunk@1422 6955db30-a419-402b-8a0d-67ecbb4d7f56 --- lib/viewvc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/viewvc.py b/lib/viewvc.py index bf9be7be..864fd084 100644 --- a/lib/viewvc.py +++ b/lib/viewvc.py @@ -907,7 +907,7 @@ def check_freshness(request, mtime=None, etag=None, weak=0): cfg.options.http_expiration_time) request.server.addheader('Expires', expiration) request.server.addheader('Cache-Control', - 'max-age=%d' % cfg.options.http_expiration_time) + 'must-revalidate, max-age=%d' % cfg.options.http_expiration_time) if isfresh: request.server.header(status='304 Not Modified') @@ -3568,7 +3568,7 @@ def view_revision(request): 'jump_rev_hidden_values' : jump_rev_hidden_values, })) if rev == youngest_rev: - request.server.addheader("Cache-control", "no-store") + request.server.addheader("Cache-control", "must-revalidate, no-store") generate_page(request, "revision", data) def is_query_supported(request):