• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Should browser clear cache when an applicaton is refreshed?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Should browser clear cache when an applicaton is refreshed?

    I have been making some changes to an application which required me to refresh most of the java script in the application. When a user attempts to reopen the application, the application is failing because the browser is still caching some of the old js. Is there a way to force the browser to clear the cache when an application is rebuilt without having to have each user manually clear their cache? I didn't remember having to do this in Valence 4.1. Thanks in advance for your help.

  • #2
    You can add a cache buster to your script tag source URL to force the browser to pull the latest.

    Example
    HTML Code:
    <html>
        <head>
            <script src="/resources/valence.js?cacheBust=2018.4.30.001"></script>
        </head>
        <body>
        </body>
    </html>

    Comment

    Working...
    X