Skip to content

A Swiss Army knife for developers.

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.cs
index 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 : IStaticAssetService
HttpRequestMessage 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 : IStaticAssetService
if (!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);
+ //}
}
}