Skip to main content
Known Participant
July 6, 2007
Question

caching??

  • July 6, 2007
  • 3 replies
  • 284 views
How can I get around Javascript caching? For instance, if we put code in external .js files, the browser
will cache the file upon first downloading it. Therefore, upon each subsequent visit to the page that has the .js reference, the cached version will be used. This sucks if changes have been made to the .js because they will not be used.

The same goes for .cfm files?

Thanks!
-Gary
    This topic has been closed for replies.

    3 replies

    Inspiring
    July 6, 2007
    Just rename the js file.
    suluclacAuthor
    Known Participant
    July 6, 2007
    Yes, but is there a way to tell the browser:
    Do not use file.ext that is in your cache, instead use this one that's on the server?
    Participating Frequently
    July 6, 2007
    this is a feaure of the browser and not a feature of CF. I've never ran into the problem myself though in 5 years of building CF apps.