Cloud Storage suddenly providing a cached file despite "no-cache" metadata

97 views
Skip to first unread message

Massimo Di Cosimo

unread,
Apr 5, 2018, 10:38:12 AM4/5/18
to Google App Engine
Hi, I've been using the Storage service for years but starting from yesterday I'm having a problem.
I'm getting a cached version of the files even if I put the "no-cache" option in Cache-Control.
Was there any recent change that I should be aware of?

Thank you,
Max

Kenworth (Google Cloud Platform)

unread,
Apr 5, 2018, 2:23:22 PM4/5/18
to Google App Engine
QQ: Can you please provide your complete headers? And how long do the files get cached?

Massimo Di Cosimo

unread,
Apr 5, 2018, 2:53:39 PM4/5/18
to google-a...@googlegroups.com
Here are metadata:
Content-Type application/octet-stream
Content-Encoding
Content-Disposition
Content-Language
Cache-Control no-cache

I'm not sure about caching duration: at this moment I'm getting the file version of more than 10 hours ago, even if it was updated 13 times since then, the last a couple of hours ago.
If you want to give it a try, here is the public link:
https://storage.googleapis.com/mdc_bucket_1/TerremotiItalia/week99.txt

It's a text file and the first row should contain the following date/time (taken now from the Google Cloud Platform Browser)
2018    04    05    18:01:10

If I get it with browser the first row is
2018    04    05    09:53:48

Thank you,
Massimo Di Cosimo


On Thu, Apr 5, 2018 at 8:23 PM, 'Kenworth (Google Cloud Platform)' via Google App Engine <google-a...@googlegroups.com> wrote:
QQ: Can you please provide your complete headers? And how long do the files get cached?

--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/vXvU7VoysRw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/ce4cc91e-392e-4646-ac92-954c87eb014c%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Massimo Di Cosimo

unread,
Apr 6, 2018, 12:17:25 AM4/6/18
to Google App Engine
Small update.
At this moment, if I connect through the cellular network I get an old version of file, while if I connect through the wifi of my house (fixed connection) I get the latest file.
Thanks,
Massimo

Kenworth (Google Cloud Platform)

unread,
Apr 6, 2018, 12:46:58 PM4/6/18
to Google App Engine
What happens if you try it with a cellular network in incognito/private mode?

Massimo Di Cosimo

unread,
Apr 6, 2018, 3:07:30 PM4/6/18
to Google App Engine
At this moment I get the same old version (about 36 hours) from any path:

- PC connected through home fixed connection
- mobile phone through cellular netwok
- mobile phone through home fixed connection

On the mobile phone (Android) I tried with:
- Chrome
- Chrome in incognito
- phone standard browser

Please also note that since about 10 hours ago I changed the Cache-Control setting to "private" (following this article: https://cloud.google.com/storage/docs/gsutil/addlhelp/WorkingWithObjectMetadata)

Thank you,
Massimo

Kenworth (Google Cloud Platform)

unread,
Apr 9, 2018, 1:39:40 PM4/9/18
to google-a...@googlegroups.com
Setting the Cache-Control header to 'private' should have prevented caching of the object. Since this is not the case, I highly encourage you to submit a defect report as described in this article so that proper attention and weight will be given to it. We monitor that issue tracker closely.

I look forward to this issue report.


Snehal Shinde

unread,
Apr 11, 2018, 9:25:23 AM4/11/18
to Google App Engine
Did it solved the problem for you? As i am also facing the same issue from last week and its getting worse as different PC's for the same URL are behaving in a  different way. Three PC it will show three different version and one PC it will show the right version.

Kenworth (Google Cloud Platform)

unread,
Apr 11, 2018, 1:10:16 PM4/11/18
to Google App Engine
Hi Snehal, setting the cache to 'private' or 'no-store' fixed the issue for some users. If this is not the case, please submit a defect report as mentioned previously so we can further investigate the issue. Thanks

Massimo Di Cosimo

unread,
Apr 11, 2018, 3:46:33 PM4/11/18
to Google App Engine
Report submitted: Issue ID =  77842189 (https://issuetracker.google.com/77842189)
Thank you!

Massimo Di Cosimo

unread,
Apr 11, 2018, 3:48:31 PM4/11/18
to Google App Engine
Dear Snehal,
it seems that "cache busting" is effective in those cases.
Massimo
Reply all
Reply to author
Forward
0 new messages