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
{{ message }}
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.
Quoting myself from gitter chat, so the future readers could understand the problem:
Consider I have defined my resource modification date as File.GetLastWriteTimeUtc "filename.txt". It could be, for example, 2015-01-01T12:34:56.001Z (note the .001 millisecond part, that's important).
When Freya sends that date to client, it truncates milliseconds, so the date becomes Last-Modified: Smt, 1 Jan 2015, 12:34:56 GMT.
And here's the problem. When client wants to check if resource was modified, it sends that date back. And Freya tries to compare the dates 2015-01-01T12:34:56.001Z and 2015-01-01T12:34:56Z. They are almost never equal! So Freya (almost) always will send the page to client, caching is effectively disabled.
So, the problem is that the server loses some time precision due to common format usage.
@ForNeVeR - many thanks! You're right, this is definitely something we should address, we need to make this easier in some form. That's possible, I'll take a look soon!
See notes from @ForNeVeR discussion on gitter.
The text was updated successfully, but these errors were encountered: