diff --git a/master/product/Vifib/Tool/VifibRestApiV1Tool.py b/master/product/Vifib/Tool/VifibRestApiV1Tool.py index cf558d33e7930e28a6e710a1ffc0aed9656a4d44..4d4f55dfd8349fe64d5dddfac873fe05ea7984e6 100644 --- a/master/product/Vifib/Tool/VifibRestApiV1Tool.py +++ b/master/product/Vifib/Tool/VifibRestApiV1Tool.py @@ -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