Name of cache busting parameter
Created by: millette
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
to ver
? 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:
window.MathJax = {
AuthorInit: function () {
// couchdb really doesn't like the ?rev argument
// appended by the MathJax loader;
// taking care of that here (side effects, perhaps?)
window.MathJax.cdnVersion = ''
}
}
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?