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

How to completely disable cache? #223

Closed
AbstractiveNord opened this issue Mar 13, 2024 · 2 comments
Closed

How to completely disable cache? #223

AbstractiveNord opened this issue Mar 13, 2024 · 2 comments

Comments

@AbstractiveNord
Copy link

I have a legacy system, which I have to connect to S3. Caching works on that system. Have to disable cache on nginx s3 gateway?

@4141done
Copy link
Collaborator

So we don't have a formal way to disable caching, but you can set PROXY_CACHE_MAX_SIZE = "0" which will functionally stop requests from being served from the cache.

I just tested it locally and I did see that no cache files were created. However, some NGINX variables like $upstream_cache_status will still show HIT for keys that are repeatedly requested.

The correct way to do this is to set proxy_cache off; In this file

For more information on how to use these files, see this reference https://github.com/nginxinc/nginx-s3-gateway/blob/master/docs/development.md#stub-files

@AbstractiveNord
Copy link
Author

Thanks!

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

No branches or pull requests

2 participants