Commit 77a41023 authored by Łukasz Nowak's avatar Łukasz Nowak

Setup Cache-Control header.

parent d70860d8
......@@ -359,6 +359,9 @@ class InstancePublisher(GenericPublisher):
# Last-Modified header of subobject containing certificate
self.REQUEST.response.setHeader('Last-Modified',
rfc1123_date(software_instance.getModificationDate()))
# Say that content is publicly cacheable. It is only required in order to
# *force* storing content on clients' disk in case of using HTTPS
self.REQUEST.response.setHeader('Cache-Control', 'public')
self.REQUEST.response.setBody(json.dumps(d))
return self.REQUEST.response
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment