Commit fa395f84 authored by Romain Courteaud's avatar Romain Courteaud

Do not cache result as response depend of query content

Yes, this is bad...
parent bd711df6
...@@ -399,7 +399,7 @@ class InstancePublisher(GenericPublisher): ...@@ -399,7 +399,7 @@ class InstancePublisher(GenericPublisher):
self.REQUEST.response.setStatus(200) self.REQUEST.response.setStatus(200)
self.REQUEST.response.setHeader('Cache-Control', self.REQUEST.response.setHeader('Cache-Control',
'max-age=300, private') 'no-cache, no-store')
self.REQUEST.response.setBody(jsonify({'result': result})) self.REQUEST.response.setBody(jsonify({'result': result}))
return self.REQUEST.response return self.REQUEST.response
......
18 19
\ No newline at end of file \ No newline at end of file
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