Problems with JavaScript file update in sharepoint online?

Toriyama 281 Reputation points
2021-07-31T11:55:19.663+00:00

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

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,688 questions
0 comments No comments
{count} votes

Accepted answer
  1. MichaelHan-MSFT 18,016 Reputation points
    2021-08-02T02:36:03.003+00:00

    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.


0 additional answers

Sort by: Most helpful