-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Name of cache busting parameter #1570
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
Comments
Could you provide some background on why this is causing problems with CouchDB? |
According to the Officlal CouchDB Docs:
|
In effect, the JavaScript files autoloaded by MathJax aren't found (404) when attached to a CouchDB document since the specified |
I don't have any problem with changing I was going to suggest essentially the patch that you are already using (I didn't see it in the email version sent to me when you initially posted, so I assume you edited it afterward). Alternatively, you could use
which does the change you are asking for. |
Ah, replacing the fileRev(), less magic than my workaround, thanks. CouchDB might not be the most popular web server, it's probably less work to change the parameter name than to add a description of the workaround to a FAQ on in the README. The patch would be trivial but let me know if you want me to provide it. With the possibility of changing fileRev(), I hereby retract my suggestion to make the "rev" parameter changeable thru an option :-) A new hardcoded value will do just fine. |
It is probably easier for us to do it, as contributed changes require an SLA, which is too much of a hassle for this one-word change. |
I wouldn't want copyright to swap 2 letters :-) |
Right. But administrators like to have all the forms. Thanks for your contribution! |
…nflict with anyone's server usage). Resolves issue mathjax#1570.
The |
Change 'rev=' to 'V=' in cache breaking code. #1570
==> Merged |
Thanks! |
I'm fine with that. |
We just got bitten by this. Have changed this to : This has the benefit of not being a standard query parameter, and therefore a lot less likely to interfere with other systems while fulfilling the required effect of making the URL to MathJax resources reflect the current version. |
Hello, I'm new to MathJax, but checked older (and closed issues) and I don't think this was brought up yet.
Long story short, I'm using CouchDB to serve the MathJax files for a CouchApp (instead of nginx or another http server). The
rev
parameter that's added to the automatically loaded JS files is interfering with CouchDB's semantics.Searching this source code, I see
rev
is only used in a couple of places, and only for cache busting. Correct me if I'm wrong.May I suggest changing
rev
tover
? From what I understand, if shouldn't change anything in MathJax, but it would stop interfering with CouchDB. If you feel using another hardcoded parameter name could lead the further problems down the line, we could make it an option.For now, I'm using this workaround:
I'm ready to write a quick patch for the 1st option if this solution is accepted (s/rev/ver/). I can also try to make it an option if that's preferable.
Thoughts?
The text was updated successfully, but these errors were encountered: