File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 </PropertyGroup >
1010
1111 <ItemGroup >
12- <PackageReference Include =" Drogecode.Blazor.OfflineSupport" Version =" 1.0.3 " />
12+ <PackageReference Include =" Drogecode.Blazor.OfflineSupport" Version =" 1.0.4 " />
1313 <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly" Version =" 10.0.8" />
1414 <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version =" 10.0.8" PrivateAssets =" all" />
1515 <PackageReference Include =" MudBlazor" Version =" 9.5.0" />
Original file line number Diff line number Diff line change 1818 <MudSwitch T =" bool" @bind-Value =" _cachedRequest.IgnoreCache" Label =" Ignore cache" />
1919 <MudSwitch T =" bool" @bind-Value =" _cachedRequest.CachedAndReplace" Label =" Cached and replace" />
2020 <MudSwitch T =" bool" @bind-Value =" _cachedRequest.CacheWhenOffline" Label =" Always cache when offline" />
21- <MudSwitch T =" bool" @bind-Value =" _cachedRequest.RetryOnJsonException " Label =" Retry on JSON exception " />
21+ <MudSwitch T =" bool" @bind-Value =" _cachedRequest.WriteCache " Label =" Write cache " />
2222 <MudSwitch T =" bool" @bind-Value =" _storageSettings.MockOffline" Label =" Mock offline" />
2323 <MudNumericField T =" int" @bind-Value =" @_storageSettings.ResponseDelayInMs" Label =" Delay response (ms)" />
2424</MudForm >
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ private async Task Save()
3434 StateHasChanged ( ) ;
3535 _cachedRequest . ExpireLocalStorage = DateTime . UtcNow . AddDays ( _storageSettings . LocalStorageDaysInFuture ) ;
3636 _cachedRequest . ExpireSession = DateTime . UtcNow . AddMinutes ( _storageSettings . SessionStorageMinutesInFuture ) ;
37+ _cachedRequest . RetryOnJsonException = true ;
3738 _cachedRequest . RetryOnFreshOffline = true ;
3839
3940 var value = await StorageService . CachedRequestAsync ( _storageSettings . Key ,
You can’t perform that action at this time.
0 commit comments