dreamwest Posted February 6, 2009 Share Posted February 6, 2009 I have caching enabled for javascript through htaccess, but i dont want 2 specific js files to be cached . Is there a way i can add something to the js code to stop it from being cached? Quote Link to comment Share on other sites More sharing options...
Psycho Posted February 6, 2009 Share Posted February 6, 2009 A trick I have always used is to save the js file with a .php, .asp, or whatever server-side interpreted extensions you are using. In my experience, this has always forced the browser to always get a current copy of the file. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.