Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9020133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:56:25+00:00 2026-06-16T04:56:25+00:00

How long does it take for a change to a file in Google Cloud

  • 0

How long does it take for a change to a file in Google Cloud Storage to propagate?

I’m having this very frustrating problem where I change the contents of a file and re-upload it via gsutil, but the change doesn’t show up for several hours. Is there a way to force a changed file to propagate everything immediately?

If I look at the file in the Google Cloud Storage console, it sees the new file, but then if I hit the public URL it’s an old version and in some cases, 2 versions ago.

Is there a header that I’m not setting?

EDIT:

I tried gsutil -h "Cache-Control: no-cache" cp -a public-read MyFile and it doesn’t help, but maybe the old file needs to expire before the new no-cache version takes over?

I did a curl -I on the file and get this back:

HTTP/1.1 200 OK
Server: HTTP Upload Server Built on Dec 12 2012 15:53:08 (1355356388)
Expires: Fri, 21 Dec 2012 19:58:39 GMT
Date: Fri, 21 Dec 2012 18:58:39 GMT
Last-Modified: Fri, 21 Dec 2012 18:53:41 GMT
ETag: "66d820174d6de17a278b327e4c3e9b4e"
x-goog-sequence-number: 3
x-goog-generation: 1356116021512000
x-goog-metageneration: 1
Content-Type: application/octet-stream
Content-Language: en
Accept-Ranges: bytes
Content-Length: 160
Cache-Control: public, max-age=3600, no-transform
Age: 3449

Which seems to indicate it will expire in an hour, despite the no-cache.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T04:56:27+00:00Added an answer on June 16, 2026 at 4:56 am

    Google Cloud Storage provides strong data consistency: once a write completes, a read from anywhere in the world will get the most recent data.

    However, if you enable caching (which by default is true for any publicly readable object), reads of that object can see a version of the object as old as the Cache-Control max-age specified on the object. If, for example, you uploaded the file like this:

    gsutil cp -a public-read file gs://my_bucket/file
    

    You can see that the max-age is 1 hour (3600 seconds):

    gsutil ls -L gs://my_bucket/file
    gs://my_bucket/file:
        Creation time:  Fri, 21 Dec 2012 19:59:57 GMT
        Cache-Control:  public, max-age=3600, no-transform
        Content-Length: 1065
        Content-Type:   text/plain
        ETag:       eb3fb83beedf1efffe5b8e32e8d6a65a
        ...
    

    If you want to prevent a publicly readable object from being cached you could do:

    gsutil setmeta -h Cache-Control:no-cache gs://my_bucket/file
    

    Alternatively, you could set a shorter max-age on the object:

    gsutil setmeta -h 'Cache-Control:public, max-age=600, no-transform'
    

    Mike Schwartz, Google Cloud Storage team

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On average, how long does it take for Debian to package new versions of
How long does it usually take for individual developers to be accepted into the
I have a problem using a given CSS file I don't want to change.
I want to know how long does it take from posting a notification to
Is there a way to get the status how long does it takes to
What happes when the script that made @mysql_connect($server, $user, $password) dies? How long does
I have a function that does a long task and I want to update
Firefox does not support a long path. But in IE code is run smoothly.
Does Windows XP (and up) store how long it has been... ...since the system
Long question Is it possible to add a DOM element only if it does

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.