witten
/
luminotes
Archived
1
0
Fork 0

Backing out extra indentation.

This commit is contained in:
Dan Helfman 2008-10-08 15:56:30 -07:00
parent a1ffcfb9b8
commit 122ef0cc27
1 changed files with 6 additions and 6 deletions

View File

@ -6,11 +6,11 @@ def strongly_expire( function ):
Decorator that sends headers that instruct browsers and proxies not to cache.
"""
def expire( *args, **kwargs ):
cherrypy.response.headers[ "Expires" ] = "Sun, 19 Nov 1978 05:00:00 GMT"
cherrypy.response.headers[ "Cache-Control" ] = "no-store, no-cache, must-revalidate, post-check=0, pre-check=0"
cherrypy.response.headers[ "Pragma" ] = "no-cache"
cherrypy.response.headers[ "Expires" ] = "Sun, 19 Nov 1978 05:00:00 GMT"
cherrypy.response.headers[ "Cache-Control" ] = "no-store, no-cache, must-revalidate, post-check=0, pre-check=0"
cherrypy.response.headers[ "Pragma" ] = "no-cache"
return function( *args, **kwargs )
return function( *args, **kwargs )
return expire
@ -22,8 +22,8 @@ def weakly_expire( function ):
breaking Internet Explorer HTTPS file downloads.
"""
def expire( *args, **kwargs ):
cherrypy.response.headers[ "Expires" ] = "Sun, 19 Nov 1978 05:00:00 GMT"
cherrypy.response.headers[ "Expires" ] = "Sun, 19 Nov 1978 05:00:00 GMT"
return function( *args, **kwargs )
return function( *args, **kwargs )
return expire