cujojs / curl

curl.js is small, fast, extensible module loader that handles AMD, CommonJS Modules/1.1, CSS, HTML/text, and legacy scripts.
https://github.com/cujojs/curl/wiki
Other
1.89k stars 216 forks source link

Possible caching problems with Chrome version 33 #249

Closed kokujin closed 10 years ago

kokujin commented 10 years ago

I am loading AMD define wrapped Swig (http://paularmstrong.github.io/swig/) templates in my application. Changes in my templates are reflected in Firefox but Chromes displays the templates unchanged and new changes are shown only when I manually clear the browser cache . The author of Swig suggested that its probably due to curl.js caching methods. Could this be?

A more elaborate explanation with code snippets is here:

https://github.com/paularmstrong/swig/issues/402

Thanks

unscriptable commented 10 years ago

Hey @kokujin,

curl.js cannot cache between page refreshes, so this is probably just another case of Chrome's buggy caching mechanism. Try restarting Chrome.

Have you considered using swig in the browser and loading the templates with the text! plugin?

Pre-compiling them is also an option, of course, but I was just wondering if you've considered using an AMD bundling tool to compile them, instead.

-- John

unscriptable commented 10 years ago

@kokujin take a look at https://github.com/cujojs/curl/issues/159#issuecomment-40822281 :)

kokujin commented 10 years ago

Thanks!