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

Usage with browser caching mechanism #22065

Closed
petrkoutnycz opened this issue Apr 16, 2021 · 2 comments
Closed

Usage with browser caching mechanism #22065

petrkoutnycz opened this issue Apr 16, 2021 · 2 comments
Labels
Source - Docs.ms Docs Customer feedback via GitHub Issue ⌚ Not Triaged

Comments

@petrkoutnycz
Copy link

Hi,

I've done some testing with few major browsers and it seems that they send request headers disabling caching (e.g. "cache-control=no-cache") even if they shouldn't. I'm curious though how is this nice feature applicable these days? We do not design our application to be served for Postman or Fiddler, but for real-world users with real-world browsers :-)

Thank you for the answer!


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@dotnet-bot dotnet-bot added ⌚ Not Triaged Source - Docs.ms Docs Customer feedback via GitHub Issue labels Apr 16, 2021
@guardrex
Copy link
Collaborator

Hello @petrkoutnycz ... ASP.NET Core just follows the HTTP caching specification. There's some info on this in the Overview topic of this node. Whatever rules browsers follow for making requests for content WRT caching, there are many requests that aren't made by browsers (e.g., apps/web API/services) following different rules and often without avoiding cached responses.

This is a general question for discussion best left to the community. For general discussion, we recommend public support forums, such as ...

WRT having more control over caching (i.e., ignoring cache control headers and thus not following the HTTP spec), such a feature is called "output caching" and is in design. See 👉 dotnet/aspnetcore#27387.

@petrkoutnycz
Copy link
Author

Thanks for your extensive reply, I appreciate that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Source - Docs.ms Docs Customer feedback via GitHub Issue ⌚ Not Triaged
Projects
None yet
Development

No branches or pull requests

3 participants