A Swiss Army knife for developers.
C# blazorcross-platformcsharpdesktopdesktop-appdesktop-applicationdeveloper-toolsextensiblefluentfluent-designlinuxmacosmicasyntax-highlightingtypescriptwindowswindows-10windows-11winui
Fixed an issue on Mac where Safari's cache is unaccessible
Etienne Baudoux31324a876a47
diff --git a/src/app/dev/platforms/desktop/DevToys.MauiBlazor/Microsoft/Fast/Components/FluentUI/FileBasedStaticAssetService.cs b/src/app/dev/platforms/desktop/DevToys.MauiBlazor/Microsoft/Fast/Components/FluentUI/FileBasedStaticAssetService.csindex b9816c4bb..e70be9a2e 100644--- a/src/app/dev/platforms/desktop/DevToys.MauiBlazor/Microsoft/Fast/Components/FluentUI/FileBasedStaticAssetService.cs+++ b/src/app/dev/platforms/desktop/DevToys.MauiBlazor/Microsoft/Fast/Components/FluentUI/FileBasedStaticAssetService.cs@@ -22,11 +22,11 @@ public class FileBasedStaticAssetService : IStaticAssetServiceHttpRequestMessage message = CreateMessage(assetUrl);- if (useCache)- {- // Get the result from the cache- result = await _cacheStorageAccessor.GetAsync(message);- }+ // if (useCache)+ // {+ // // Get the result from the cache+ // result = await _cacheStorageAccessor.GetAsync(message);+ // }if (string.IsNullOrEmpty(result)){@@ -35,17 +35,17 @@ public class FileBasedStaticAssetService : IStaticAssetServiceif (!string.IsNullOrEmpty(result)){- if (useCache)- {- // If successful, create the response and store in the cache (when used)- HttpResponseMessage response = new()- {- StatusCode = HttpStatusCode.OK,- Content = new StringContent(result)- };+ //if (useCache)+ //{+ // // If successful, create the response and store in the cache (when used)+ // HttpResponseMessage response = new()+ // {+ // StatusCode = HttpStatusCode.OK,+ // Content = new StringContent(result)+ // };- await _cacheStorageAccessor.PutAsync(message, response);- }+ // await _cacheStorageAccessor.PutAsync(message, response);+ //}}}