-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Theme issue (or Firefox cache issue?) #78
Comments
This is a cache issue, and it is solved by using a hard refresh (or visiting from an incognito tab). |
Where would we add that? Build scripts? |
I'm wondering if it's better to use validation instead of fingerprinting. From RFC 7234:
then in 4.3.3:
So if we add an So validation means more HTTP requests, but many with no response body (it takes 11ms on my laptop to get a 304 on a docs.python.org CSS) but no maintenance. On the other hand, fingerprinting means less HTTP requests (we could even explicitly set An easy way to fingerprint would be to append the version in the stylesheet variable in |
Please see PR #108. |
Today I'm seeing a theming issue:
It looks like cache problem, so I'm going to investigate step by step...
...damned, opening the Firefox console solved the issue (the no-cache were ticked), so we have a browser cache issue: users with the old theme in their local cache may get what I got.
I unticked the Firefox network console "disable cache" and tried all other translations to try to reproduce, and was able to reproduce it once:
The request done by my browser was:
(Which, using curl, give the up-to-date file)
But got no response (first time I see this) it were "raced" (by the local cache?) I only see
882 B (raced)
in the network pane, no more info.According to https://support.mozilla.org/en-US/questions/1267945 this display mean the network won the race, which looks wrong because I have no response header and the css is the old one:
Also the size is too low to contain the whole css, so it looks like the network connection has started, bytes has been received, but the cache won the race and the network connection was interrupted.
Which I find strange is that when I refresh, all other components are requested by my browser, which all properly receive a "304 not modified" answer, but not the CSS itself:
The text was updated successfully, but these errors were encountered: