Skip to content

Commit

Permalink
Added caching for one day for profiler files
Browse files Browse the repository at this point in the history
  • Loading branch information
ToshB committed Dec 5, 2012
1 parent 697df02 commit 67b914a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Raven.Client.MvcIntegration/RavenProfilingHandler.cs
Expand Up @@ -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);
}
Expand Down

0 comments on commit 67b914a

Please sign in to comment.