Add a debug setting which promises to restore my sanity in the face of
Etags and browser caching. And use it. * lib/debug.py (DISABLE_ETAGS): New. * lib/viewcvs.py (check_freshness): If DISABLE_ETAGS is set, never report that the page is fresh. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@863 8cb11bc2-c004-0410-86c3-e597b4017df7remotes/tags/1.0.0-rc1
parent
e8dc91b483
commit
3e73713c17
|
@ -21,6 +21,7 @@ import sys
|
|||
|
||||
SHOW_TIMES = 0
|
||||
SHOW_CHILD_PROCESSES = 0
|
||||
DISABLE_ETAGS = 0
|
||||
|
||||
if SHOW_TIMES:
|
||||
|
||||
|
|
|
@ -588,6 +588,10 @@ def _repos_pathtype(repos, path_parts):
|
|||
return type
|
||||
|
||||
def check_freshness(request, mtime=None, etag=None, weak=0):
|
||||
# See if we are supposed to disable etags (for debugging, usually)
|
||||
if debug.DISABLE_ETAGS:
|
||||
return 0
|
||||
|
||||
request_etag = request_mtime = None
|
||||
if etag is not None:
|
||||
if weak:
|
||||
|
|
Loading…
Reference in New Issue