Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
35eb258d
Commit
35eb258d
authored
May 29, 2019
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_officejs_appstore_base] Cache the manifest like the HTML page
parent
48f99c7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/WebSection_renderOfficeJSRedirectAppCache.py
...ppstore_base/WebSection_renderOfficeJSRedirectAppCache.py
+1
-1
No files found.
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/WebSection_renderOfficeJSRedirectAppCache.py
View file @
35eb258d
...
...
@@ -10,7 +10,7 @@ if REQUEST.getHeader('If-Modified-Since', '') == web_section.getModificationDate
return
""
response
.
setHeader
(
'Content-Type'
,
'text/cache-manifest'
)
response
.
setHeader
(
'Cache-Control'
,
'max-age=
0, public, must-revalidate
'
)
response
.
setHeader
(
'Cache-Control'
,
'max-age=
600, stale-while-revalidate=360000, stale-if-error=31536000, public
'
)
return
"""CACHE MANIFEST
# %s + hash"""
%
context
.
getLayoutProperty
(
"configuration_latest_version"
,
default
=
"development"
)
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