Commit ef96c19c authored by Łukasz Nowak's avatar Łukasz Nowak

Force revalidation.

Thanks to this browser will ask for newer version of data all the time,
but server will have a chance to reply with 304 (Not Modified).
parent 69ed98ab
...@@ -383,7 +383,7 @@ class InstancePublisher(GenericPublisher): ...@@ -383,7 +383,7 @@ class InstancePublisher(GenericPublisher):
rfc1123_date(software_instance.getModificationDate())) rfc1123_date(software_instance.getModificationDate()))
# Say that content is publicly cacheable. It is only required in order to # Say that content is publicly cacheable. It is only required in order to
# *force* storing content on clients' disk in case of using HTTPS # *force* storing content on clients' disk in case of using HTTPS
self.REQUEST.response.setHeader('Cache-Control', 'public') self.REQUEST.response.setHeader('Cache-Control', 'must-revalidate')
self.REQUEST.response.setBody(jsonify(d)) self.REQUEST.response.setBody(jsonify(d))
return self.REQUEST.response 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