• Jonathan Rehm's avatar
    Prevent jQuery from cache busting static assets · d85e0b96
    Jonathan Rehm authored
    If the HTML that's returned from the `$.get` request contains a `<script src="..."/>` tag it loads the JavaScript file via ajax, and by default it attaches a timestamp to it to bust cache. That means the file loads every time the modal is opened, and the browser treats it as a new file each time. The result is that code fires multiple times and events listeners are added multiple times.
    d85e0b96
Name
Last commit
Last update
cps Loading commit data...
vendor Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
LICENSE Loading commit data...
babel.cfg Loading commit data...
cps.py Loading commit data...
gdrive_template.yaml Loading commit data...
getVendor.sh Loading commit data...
messages.pot Loading commit data...
optional-requirements.txt Loading commit data...
readme.md Loading commit data...
requirements.txt Loading commit data...