We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29c64d2 commit 9d1f810Copy full SHA for 9d1f810
1 file changed
Excursion360.Desktop/Program.cs
@@ -46,6 +46,10 @@
46
fso.StaticFileOptions.ContentTypeProvider = provider;
47
fso.StaticFileOptions.OnPrepareResponse = (context) =>
48
{
49
+ // При локальной работе нет необходимости кешировать файлы
50
+ context.Context.Response.Headers.CacheControl = "no-cache, no-store";
51
+ context.Context.Response.Headers.Pragma = "no-cache";
52
+ context.Context.Response.Headers.Expires = "-1";
53
if (context.File.Name.EndsWith(".jpg", StringComparison.OrdinalIgnoreCase) && context.File.PhysicalPath is not null)
54
55
var stateImagesMetricsStore = context.Context.RequestServices.GetRequiredService<IStateImagesMetricsStore>();
0 commit comments