Comments (5)
This behaviour is correct. Please see Issue #36.
from cachecow.
Hi Ali,
In that case, should we just remove them? Because according to RFC2616, Section 10.3.5, Cache-Control
, Expires
and Pragma
should not be sent back:
The response MUST include the following header fields:
- Date, unless its omission is required by section 14.18.1 (This is correct)
- ETag and/or Content-Location, if the header would have been sent in a 200 response to the same request (this is correct)
- Expires, Cache-Control, and/or Vary, if the field-value might differ from that sent in any previous response for the same variant (We should not send them back as they haven't changed).
Thanks for your patience.
from cachecow.
And if you look at http://stackoverflow.com/questions/1587667/should-http-304-not-modified-responses-contain-cache-control-headers/4393499#4393499. There is an answer by Mark Nottingham said:
HTTPbis updates RFC2616 to say:
A 304 response MUST include a Date header field (Section 9.3 of [Part1]) unless its omission is required by Section 9.3.1 of [Part1]. If a 200 response to the same request would have included any of the header fields Cache-Control, Content-Location, ETag, Expires, Last-Modified, or Vary, then those same header fields MUST be sent in a 304 response.
I think it is a safe option to send the original headers back.
Thanks
from cachecow.
Thanks @melcloud I will take this one up to fix.
from cachecow.
It is actually ASP.NET Web API adding these headers not me.
from cachecow.
Related Issues (20)
- no-cache problem in Net Core application HOT 10
- Invalidating or overwriting a cached object? HOT 2
- CacheCow.Client - honor Age header HOT 11
- PUT operations do not invalidate cache (RFC7234 Section 4.4) HOT 7
- CacheCow.Client doesn't support no-cache header when specified by the Request HOT 6
- NoCache option for WebApi HOT 7
- CacheCow is not caching (.NET 5.0) HOT 2
- RedisCacheStore - Buffer cannot be null HOT 4
- Problems using it in a .NET 5 WebApi project HOT 4
- New builds for .NET 5.0
- Client cached response content unable to read more than once HOT 7
- Microsoft has broken TraceSwitch in .NET Core
- Source code cannot be mapped for released nuget packages HOT 4
- Possibility to update Microsoft.AspNet.WebApi.Client to 5.2.9 HOT 2
- Tests sending HttpRequest is failing
- Question: Assistance with `.net60` WebApi HOT 6
- System.TypeLoadException: Could not load type 'CacheCow.Common.ConfigurationValueProvider' from assembly 'CacheCow.Common, Version=2.11.2.0 HOT 4
- Can PUT or Patch be made to return an ETag HOT 4
- use SqlStore in .net core HOT 2
- 0.6.3 to 2.11.3 Migration - Replacement for IRoutePatternProvider? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cachecow.