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
3fe9432a
Commit
3fe9432a
authored
Apr 15, 2002
by
Toby Dickenson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change max-age time to one hour, for consistency with the css
parent
728b28c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lib/python/App/ImageFile.py
lib/python/App/ImageFile.py
+5
-5
No files found.
lib/python/App/ImageFile.py
View file @
3fe9432a
...
...
@@ -12,7 +12,7 @@
##############################################################################
"""Image object that is stored in a file"""
__version__
=
'$Revision: 1.1
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
7
$'
[
11
:
-
2
]
from
OFS.content_types
import
guess_content_type
from
Globals
import
package_home
...
...
@@ -34,11 +34,11 @@ class ImageFile(Acquisition.Explicit):
path
=
os
.
path
.
join
(
_prefix
,
path
)
self
.
path
=
path
if
Globals
.
DevelopmentMode
:
# In development mode,
shorter
is handy
max_age
=
60
# In development mode,
a shorter time
is handy
max_age
=
60
# One minute
else
:
#
In production mode, longer reduces latency
max_age
=
600
#
A longer time reduces latency in production mode
max_age
=
3600
# One hour
self
.
cch
=
'public,max-age=%d'
%
max_age
file
=
open
(
path
,
'rb'
)
...
...
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