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

Response content-encoding forces to "br", causing failed response on Chrome/Edge but not Firefox #34

Open
joshuachongwdc97 opened this issue Dec 22, 2022 · 3 comments

Comments

@joshuachongwdc97
Copy link

As the title suggests, I'm having trouble when i hit a cached response. But when I set "disable cache" in DevTools console it starts to work again.

Only difference i see is when its not disabled on the browser, content-encoding header returns "br". But when I disabled cached on browser (ie sending cache-control to no-cache it returns "gzip"

DId i miss something?

@joshuachongwdc97
Copy link
Author

Just noticed chrome will not accept "br" aka Brotli as the enconding method if the API is served over HTTP.

Any workarounds for this if i do not plan on implementing HTTPS?

@tomasmck
Copy link

Seeing this also @joshuachongwdc97 - I just switched to apicache-plus from apicache. Let me know if you found a workaround.

@joshuachongwdc97
Copy link
Author

@tomasmck, apologies on the late response. Unfortunately, the only workaround would be running your application with SSL enabled (HTTPS)

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