question

JrgenFogh-4820 avatar image
0 Votes"
JrgenFogh-4820 asked ·

Web-app only works after reloading

I have deployed a ASP.NET Core 3.1 SPA using Azure Devops at https://jrgfogh-whist.azurewebsites.net/
The app is running as a Linux app service.

When I access the page from Chrome, I get the welcome page the first time and then my app when I reload the page. After that, I can load the app correctly every time, until I do a hard reload, which makes the problems reappear.

When I access the page from Edge, I get an Azure welcome page every time.
If I access the page from incognito mode in Chrome, I also get the welcome page every time.

How do I proceed to diagnose this issue?

azure-webapps
· 1
10 |1000 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.

I just noticed that the version of the app, which gets loaded in Chrome, is an old version.
The old version was deployed through Visual Studio before I configured the Azure Devops pipeline.

0 Votes 0 ·

1 Answer

JrgenFogh-4820 avatar image
0 Votes"
JrgenFogh-4820 answered ·

It turns out that the contents of the web app was being cached by a service worker in Chrome.

· 1 ·
10 |1000 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.

@JrgenFogh-4820 Glad to hear that you got it working. Appreciate for sharing the steps which helped you, this would certainly benefit other community members.

0 Votes 0 ·