I follow the recommendations and update my code to use the new cloud storage API in GAE, I need to set cachecontrol headers, before it was easy:
files.gs.create(filename, mime_type='image/png', acl='public-read', cache_control='public, max-age=100000, must-revalidate' )
BUT, with the new API, the manuals say that "cache_control" is not available ... I get this error when trying to set cache control inside the parameters:
ValueError: option cache_control is not supported.
Tried using Cache-Control the same error ...
As usual, the documentation for the new API is not suitable.
Can someone help me customize cache headers in the new Cloud Storage API using PYTHON. In case this is not possible, can I use the old api for my project?
Thanks.
source share