Are there any JavaScript files that are not cached?
However if these are files are maintained in the “Style Library” (a built in library created by SP) they will NOT be cached and will update normally. It’s easy enough, once this known, to create your own set of folders within the Style Library and manage your scripts from there.
How to avoid caching issue when using custom JavaScript and CSS?
SharePoint will automatically check, if the js file changes and will append a custom query string with a revision number, just like it does with the internal js files, if you check the source of your website. You just have to change the Name in your Scriptlink control like: This will change the path to your custom.js on the website to s.th. like:
Can you use SharePoint framework with JavaScript libraries?
By combining a number of smaller files into one bigger bundle, your web part loads faster on the page. However, bundling existing JavaScript libraries with SharePoint Framework client-side web parts isn’t without drawbacks.
How to check the hosting of a SharePoint script?
If your script is hosted on a publicly accessible URL, you can use the free Rencore SharePoint Framework Script Check tool to determine the type of script for you. Additionally, this tool lets you know whether the hosting location from which you’re loading the script is properly configured.
Why does my JavaScript keep returning old versions?
Examination with Fiddler, multiple browsers, tests on machines that had never visited the staging site and even a direct telnet and manual “get” outside a browser show that the server is distributing the old file.
How to change version number of JavaScript file?
Locate the code section where the JavaScript file is loaded to the page and add a parameter string to the end for testing. For example: Every time you update your JavaScript file, you change the version number. This will force the browser to load your new version of JavaScript file.