You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The client requests an entity for the first time, and receives 200 (OK).
The client requests the same entity within the valid cache time, and receives the entity from the client cache.
The client requests the same entity a third time, but the max-age has expired the client-side cached entity, and a request is sent to the server. The server responds with 304 (Not Modified) and the client-side cached entity is returned.
From now on, requesting the entity will always invoke a call to the server.
The bug is that the client-side CachingHandler never updates the Date header on the cached entity response. The client-side CachingHandler always believes that the entity must be revalidated.
According to #123, the server-side CachingHandler always returns a null cache-control header. The CacheCow.Client.CachingHandler.UpdateCachedResponse-method ignores all 304-responses with null-headers and subsequently never updates the date-header. Thus the ResponseValidator returns MustRevalidate forever.
The text was updated successfully, but these errors were encountered:
Hi!
Consider the following scenario:
The bug is that the client-side CachingHandler never updates the Date header on the cached entity response. The client-side CachingHandler always believes that the entity must be revalidated.
According to #123, the server-side CachingHandler always returns a null cache-control header. The CacheCow.Client.CachingHandler.UpdateCachedResponse-method ignores all 304-responses with null-headers and subsequently never updates the date-header. Thus the ResponseValidator returns MustRevalidate forever.
The text was updated successfully, but these errors were encountered: