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

HTTP responses to App Engine admin users aren't cacheable #1

Open
derat opened this issue Feb 8, 2021 · 2 comments
Open

HTTP responses to App Engine admin users aren't cacheable #1

derat opened this issue Feb 8, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@derat
Copy link
Owner

derat commented Feb 8, 2021

App Engine annoyingly mangles headers on HTTP responses to admin users to disable caching. It does this intentionally since those responses have X-AppEngine-Resource-Usage and X-AppEngine-Estimated-CPM-US-Dollars headers, but it means that browsers don't cache cover images or MP3s (I think -- Chrome seems to cache media files so aggressively that I wouldn't be surprised if it ignored what the server tells it).

I filed https://issuetracker.google.com/issues/179471500 but I assume I won't even get a reply.

I haven't figured out any workarounds yet. Maybe I could use Cloud Load Balancing to re-add the headers, but that seems like overkill.

@derat derat self-assigned this Feb 8, 2021
@derat derat added the bug Something isn't working label Feb 8, 2021
@derat
Copy link
Owner Author

derat commented Feb 24, 2021

Also posted https://stackoverflow.com/q/66342766/6882947 to see if anyone has found a workaround.

@derat
Copy link
Owner Author

derat commented Oct 31, 2021

I looked into the possibility of using a Chrome extension to modify the response headers, but chrome.webRequest.onHeadersReceived doesn't allow the modification of cache-related headers: https://bugs.chromium.org/p/chromium/issues/detail?id=355232

It seems like using a non-admin account is the best option for now.

@derat derat changed the title HTTP responses to admin users aren't cacheable HTTP responses to App Engine admin users aren't cacheable Feb 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant