Skip to content

Instantly share code, notes, and snippets.

@ethan-deng
Created March 27, 2015 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ethan-deng/b4f744d63cdf343f1653 to your computer and use it in GitHub Desktop.
Save ethan-deng/b4f744d63cdf343f1653 to your computer and use it in GitHub Desktop.
Bust SharePoint Client Cache

Bust Client Cache with SPUtility.MakeBrowserCacheSafeLayoutsUrl

    <script src="<%=SPContext.Current.Site.ServerRelativeUrl + SPUtility.MakeBrowserCacheSafeLayoutsUrl("folderUnderLayouts/js/MedInsight.EzInList.js", false)%>"></script>
    <link href="<%=SPContext.Current.Site.ServerRelativeUrl + SPUtility.MakeBrowserCacheSafeLayoutsUrl("folderUnderLayouts/css/easyquery.css", false)%>" rel="stylesheet" type="text/css"  />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment