-
Notifications
You must be signed in to change notification settings - Fork 345
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
commit #4ac4000 breaks existing lighttpd configuration #910
Comments
Maybe even better would be removing these complex rewrite rules and just using |
@niol what do you think about simplifying the rewrites? |
The point of query string cache busting is to avoid having bug reports because of the use of outdated js. I think this is important and also handy for upgrades and development. If simplifying rewrite rules for lighttpd is wanted (no problem with apache), there is the previous implementation I proposed (using files with a timestamp in their name). |
I was actually talking about dropping the rewrite rules altogether and using the real path ($root/public/app.js) in the script/link[rel=stylesheet] tags. That should fix this problem and also simplify the installation – I remember someone wanting to install selfoss on Hiawatha web server and citing rewrite rules as an obstacle. |
Yes, great, no objection to that. Also moving generated assets to |
@dgsiegel Since I do not know @niol I wrote down some ideas in #913, please try to check if I missed something. P.S. I will also be available on the gitter chat. |
@jtojnar |
as with commit #4ac4000, js and css files are loaded with a query string and the suggested lighttpd configuration will stop working. the issue is that the lighttpd rewrite engine will look at the full url with the querystring (e.g. /all.js?v=1234..) and therefore the regex pattern
"^/(.*.(js|ico|gif|jpg|png|css|asc|txt|eot|woff|ttf|svg))$" => "/public/$1",
will stop working. an easy fix would be to add the querystring after the regex, however i think using
url.rewrite-if-not-file
would be a better solution."^/(.*.(js|ico|gif|jpg|png|css|asc|txt|eot|woff|woff2|ttf|svg))(\?.*)?$" => "/public/$1",
The text was updated successfully, but these errors were encountered: