Added web.config for a working pwa capability
This commit is contained in:
parent
9dabe4735d
commit
b0edcb2af1
@ -19,7 +19,8 @@
|
||||
<ServiceWorker Include="wwwroot\service-worker.js" PublishedContent="wwwroot\service-worker.published.js" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\FilterCair.Shared\FilterCair.Shared.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@ -47,6 +47,10 @@
|
||||
<script src="_framework/blazor.webassembly.js"></script>
|
||||
<script src="_content/Microsoft.Authentication.WebAssembly.Msal/AuthenticationService.js"></script>
|
||||
|
||||
<script>
|
||||
navigator.serviceWorker.register('service-worker.js', { updateViaCache: 'none' });
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
13
FilterCair.Client/wwwroot/web.config
Normal file
13
FilterCair.Client/wwwroot/web.config
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<system.webServer>
|
||||
<staticContent>
|
||||
<!-- Standard-MIME für PWAs -->
|
||||
<mimeMap fileExtension=".webmanifest" mimeType="application/manifest+json" />
|
||||
<!-- Bonus: auch Source Maps und WebAssembly korrekt -->
|
||||
<mimeMap fileExtension=".wasm" mimeType="application/wasm" />
|
||||
<mimeMap fileExtension=".json" mimeType="application/json" />
|
||||
<mimeMap fileExtension=".dll" mimeType="application/octet-stream" />
|
||||
</staticContent>
|
||||
</system.webServer>
|
||||
</configuration>
|
||||
Loading…
Reference in New Issue
Block a user