Updates of webpages delivered form Azure blob $web and CDN not shown in webbrowser

C Pfleger 20 Reputation points
2024-02-25T11:14:30.3166667+00:00

Hello, when I update some webpages of a website stored in $web Azure blob storage and I try to request that updated page afterwards I still get the old page delivered (no, not a cached version!) I use CDN to have the website https delivered. Could it be that the CDN is the problem? Is there a way to enforce the update of the changes?
In the storage browser it is the new version shown but not delivered. Any hints for me? Workarounds maybe? Thx in advance!

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,787 questions
{count} votes

Accepted answer
  1. Anand Prakash Yadav 7,785 Reputation points Microsoft Vendor
    2024-02-26T11:35:24.9466667+00:00

    Hello C Pfleger,

    Thank you for posting your query here!

    Can you please try to force a content update of the website that is called by the CDN is to purge the cached content from all edge nodes as described at Purge an Azure CDN endpoint. In the endpoint overview, click the "Purge" button. Then, confirm the "Purge all" checkbox and click on the "Purge" button at the bottom of the panel as here.

    User's image

    This process usually takes about one to two minutes. The notifications show the success of the purge operation.

    The Azure CDN should now immediately retrieve the new assets for the next client requests. You may see that the first request takes some time because the website is completely reloaded - but now with the most recent data from the storage and from the $web folder. As expected, all subsequent requests are served quickly from the CDN cache.

    If the issue persists, it's possible that the issue lies elsewhere in the configuration or setup of your
    Azure CDN or Blob Storage.

    In that case, you can find out how to create and to deploy a static website on an Azure Storage Account at Static website hosting in Azure Storage and a tutorial at Tutorial: Host a static website on Blob Storage. If the website has a custom domain bound to the website with Azure CDN, see more at Quickstart: Integrate an Azure Storage account with Azure CDN.

    Once deployed and configured, we have the static website up and running in Azure CDN with some basic rules, like redirection of HTTP to HTTPS and so on. In the Azure Storage Account, the Azure CDN is configured with an *.azureedge.net endpoint as here:

    User's image

    Do let us know if you have any further queries. I’m happy to assist you further.

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    2 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Claus Pfleger 0 Reputation points
    2024-03-04T15:52:24.9833333+00:00

    Thank you @Anand Prakash Yadav , that helped and solved my problem.

    For whatever reason I do not see the option to "Accept the answer" which is probably my personal fault.

    Cordially!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.