Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Issues
  • #1570
Closed
Open
Issue created Aug 01, 2016 by Administrator@rootContributor

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?

Assignee
Assign to
Time tracking