Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
d8036f60
Commit
d8036f60
authored
Apr 10, 2001
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applied patch #2142
parent
9291da09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/python/Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py
...ucts/StandardCacheManagers/AcceleratedHTTPCacheManager.py
+3
-3
No files found.
lib/python/Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py
View file @
d8036f60
...
...
@@ -98,7 +98,7 @@ from Globals import DTMLFile
import
urlparse
,
httplib
from
urllib
import
quote
from
string
import
lower
,
join
,
split
from
App.Common
import
rfc1123_date
def
http_date
(
value
,
format
=
'%a, %d %b %Y %H:%M:%S GMT'
):
return
time
.
strftime
(
format
,
time
.
gmtime
(
value
))
...
...
@@ -173,8 +173,8 @@ class AcceleratedHTTPCache (Cache):
return
# Set HTTP Expires and Cache-Control headers
seconds
=
self
.
interval
expires
=
http
_date
(
time
.
time
()
+
seconds
)
# RESPONSE.setHeader('Last-Modified',
http
_date(time.time()))
expires
=
rfc1123
_date
(
time
.
time
()
+
seconds
)
# RESPONSE.setHeader('Last-Modified',
rfc1123
_date(time.time()))
RESPONSE
.
setHeader
(
'Cache-Control'
,
'max-age=%d'
%
seconds
)
RESPONSE
.
setHeader
(
'Expires'
,
expires
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment