Permalink
Browse files

Added caching for one day for profiler files

  • Loading branch information...
1 parent 697df02 commit 67b914ac85e6c4aa5a909cce95711c3333221288 @ToshB ToshB committed Dec 5, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 Raven.Client.MvcIntegration/RavenProfilingHandler.cs
@@ -96,6 +96,8 @@ private void HandlePathRequest(HttpContext context, string path)
}
});
context.Response.Output.Write(value);
+ context.Response.ExpiresAbsolute = DateTime.Now.AddDays(1);
+ context.Response.Cache.SetCacheability(HttpCacheability.Private);
context.Response.AppendHeader("Content-encoding", "gzip");
context.Response.Filter = new GZipStream(context.Response.Filter, CompressionMode.Compress);
}

0 comments on commit 67b914a

Please sign in to comment.