I have a script that uses $.get( ... )
to pull a piece of HTML from my server, and render it inside a <div>
with $.html
. Sometimes I have <script>
tags in the pulled HTML, and I noticed that jQuery is putting a cache buster parameter in the request for these scripts and it's causing the browser to request again for scripts that have already been loaded.
For example:
Any idea how I can disable this behavior?
The script tags don't have the _
param attached to them so it isn't my HTML that's the problem.
Also, <script>
tags that aren't rendered with $.html
aren't exhibiting this behavior.