Do I need to do anything other than update the spfx solution in the tenant catalog to see the changes on the site?

Toriyama 286 Reputation points
2023-09-12T11:12:22.21+00:00

Every time I update the spfx package in the website's application catalog, I notice it takes a long time to see the changes on the website.

Do I need to do anything other than insert/update the package in the website catalog?

Do I need to remove and re-insert the app on the website?

If I access the app on the website I see that it is now ok with the new update date.

Thanks

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,810 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ChengFeng - MSFT 5,020 Reputation points Microsoft Vendor
    2023-09-13T06:45:08.4633333+00:00

    Hi @Toriyama

    Updating SPFx packages can take some time to reflect on the website, depending on various factors such as the size of the package, the network speed, the browser cache, and the CDN configuration. You may need to do some additional steps to ensure that the changes take effect on the website, such as:

    1.Clearing your browser cache or using private mode to access the website, to avoid loading old cached files.

    2.Running the gulp clean command in your project directory, to delete all old internal build projects.

    3.Running the gulp bundle --ship and gulp package-solution --ship commands in your project directory, to generate the latest package files.

    4.Re-uploading and deploying the solution package in the SharePoint admin center.


    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.