question

Toriyama avatar image
0 Votes"
Toriyama asked Toriyama commented

Problems with JavaScript file update in sharepoint online?

Hi. I have an online sharepoint website in the company where we have aspx pages using HTML files and these use JavaScript files.

The aspx page references the HTML file and this has the JavaScript that fetches information from sharepoint lists and creates a form for inserting information.

The JavaScript file is in a document library and had to be changed. I made the change and published the file. After publishing everyone can see the new version of the file in the library. However, in the solution, the page looks like it still uses the old version of the JavaScript file.

Likely to be a cache issue, I don't know. How is this possible?

How can I solve this?

Thanks

office-sharepoint-online
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MichaelHan-MSFT avatar image
0 Votes"
MichaelHan-MSFT answered Toriyama commented

Hi @Toriyama ,

It could be related with the cache. You could try to clear the cache on the page or open in Incognito mode. Check if it is updated to the new verison.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

\@Toriyama ,
Is there anything update? Have you got the issue resolved?

0 Votes 0 ·

Hi,
It turns out that after some time the file updates itself.
Must be cache.

I also see that there are some calls to javascript files followed by .js?v=15468546
It must be about the non-cache version, I imagine.

Thanks

0 Votes 0 ·