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

There is no way to opt out cache via Request Headers #732

Open
daguitosama opened this issue Aug 26, 2024 · 3 comments
Open

There is no way to opt out cache via Request Headers #732

daguitosama opened this issue Aug 26, 2024 · 3 comments

Comments

@daguitosama
Copy link

Hi, I recently hit an issue with LittleSpeed Cache. It was overwriting a REST API call response, and giving back a cache version even if the request was made with headers asking for a no cache version like: Cache-Control: "no-cache" and Pragma: "no-cache". I fix it by disabling REST Cache on settings of the plugin, but wanted to ask if this is the intended behaviour.

@timotei-litespeed
Copy link
Contributor

@daguitosama
There is this setting: https://docs.litespeedtech.com/lscache/lscwp/cache/#cache-rest-api Will it help if you disable this setting?

@seb86
Copy link

seb86 commented Sep 9, 2024

Yes, disabling helps but I think what we would like is a little more control on which REST API's that we cache or detection of the header conditions a REST API endpoint sets as to prevent caching if need be.

@timotei-litespeed
Copy link
Contributor

There is this setting: https://docs.litespeedtech.com/lscache/lscwp/cache/#do-not-cache-uris
Also under there are other options that can help

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

4 participants
@seb86 @daguitosama @timotei-litespeed and others