html - How i can say browser to stop caching the mine page in Firefox? -
i have web-page load second page using jquery ajax , page load css load jquery code instead of embeded html code [in head tag].
the problem both chrome , firefox not refresh partial page if make change.
in partial page partial.html if change , make refresh none of them change them in chrome it's work using ctrl +r firefox not know page goes changed still produce old things.
that's problem have. how can told browser firefox stop caching page.
this problem classically solved changing url of loaded data every time use it. instance, add parameter of random data url this:
var url = "http://example.com/page.php?foo=bar&random=" + math.random();
to create url different every time, leads same data.
Comments
Post a Comment