Skip to content
This repository has been archived by the owner on Apr 18, 2021. It is now read-only.

How to only cache data with status 200 #34

Open
internetyi opened this issue Nov 2, 2018 · 2 comments
Open

How to only cache data with status 200 #34

internetyi opened this issue Nov 2, 2018 · 2 comments

Comments

@internetyi
Copy link

Now the situation is that 404 502 will cache

@nicolasazrak
Copy link
Owner

Are you sure that is happening? Is your origin sending a cache header? What is your Caddyfile? Can you show an example where this happens?

@dhannyz
Copy link

dhannyz commented Jun 28, 2019

@nicolasazrak I've been having issues with this one too. you can see here https://github.com/pquerna/cachecontrol/blob/1555304b9b35fdd2b425bccf1a5613677705e7d0/cacheobject/object.go#L352-L387
That 404s for example, are indeed cached.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants