Forum Discussion
JS Files not updating in Site Assets
- Jan 18, 2018
So the problem turned out to be my blob cache. It wasn't updating from the library and was still serving up the old file. After flushing the cache everything started working fine.
I create a quick blog post with more detail if anyone is interested.
I took a look at your blog post with a solution. Here is what I said there:
What about when you're using SharePoint Online? I'm working on a SharePoint site and subsites for a large organization. The main site is for one department. We have a SharePoint team, but I don't work with them. Because of that I only have access on SharePoint online. It has been squirrely for the whole time I have used it. I have gotten around it by putting both the CSS and the JavaScript in the HTML file. This is the only way to get it to update automatically. However, this is a problem for good coding practices. I really wish this would get fixed or remedied from the perspective of just writing code since I don't have access to making changes on the server.
From what I have seen this has always been a problem for SharePoint.