Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/vsicurl/: honor 'Cache-Control: no-cache' header #10730

Merged
merged 2 commits into from
Sep 5, 2024

Conversation

rouault
Copy link
Member

@rouault rouault commented Sep 4, 2024

No description provided.

@rouault rouault added this to the 3.10.0 milestone Sep 4, 2024
CPLTestBool(CPLGetConfigOption(
"CPL_VSIL_CURL_HONOR_CACHE_CONTROL", "YES")))
{
m_bCached = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rouault does this mean that the results are not cached at all? Or that cached results aren't used without first validating with the server?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It checks if the server returns a 'Cache-Control: no-cache' response header. If it does, then, when the file is closed, any cached data about that file is invalidated. Which is the behaviour you could already get with the CPL_VSIL_CURL_NON_CACHED config option.

@rouault rouault merged commit 0cd4fba into OSGeo:master Sep 5, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants