-
Notifications
You must be signed in to change notification settings - Fork 297
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
Remove version number from CSS URLs #134
Comments
We should not use Looking at my Shaarli running still 0.0.42, these are some of the headers sent out on a query for
And I got a 304 response back. So we are using the cached version, but we are also sending a query out which should send us the new version, if there was a new one since July 2014 (in this case). Including some kind of variable/hash for CSS and JS resources is a widely-used webdev practice. You could argue that even a hashed version of the CSS would still allow "the misterious cracker" to figure out which version of Shaarli is running, but as @nodiscc stated in #89 (comment) trying to absolutely hide any version number is pointless. So the question is: is there anything we need to do on this issue? |
I get a |
Reason: Cachebusting. |
From your link:
I don't think we set a |
This is what I get back from my Shaarli, running with Nginx:
So I don't get an |
I get the same Response headers on apache 2.2. The Request headers explicitly specify I'll remove the |
We do not need to add anything. Server Configuration establishes how to cache things. Through .htaacess archvos or * .conf in the server side configuration. But it is a good idea to try to force once a month, _if the user to update Shaarli And we change the CSS styles_, the stylesheet is re-download |
Each server returns the files according to _his_ configuration. Is useless to compare what everyone sees in localhost or on your shared server. Shaarli should not force any header or any cache. The end user must be able to decide what to do in his server configuration :) |
@nicolasdanelon Patches welcome. |
ok. workin on that brunch asap! |
Copied from #89:
From @nicolasdanelon:
From @nodiscc:
The text was updated successfully, but these errors were encountered: