Better handling of static files.

This commit is contained in:
2018-03-17 19:54:58 +01:00
parent 3bacdae77e
commit 954c34b6e0
7 changed files with 109 additions and 17 deletions

View File

@@ -12,7 +12,7 @@ namespace VAR.Focus.Web.Code
public void ProcessRequest(HttpContext context)
{
Bundler bundler = new Bundler(context.Server.MapPath("~/Scripts/"));
bundler.PrepareCacheableResponse(context.Response);
context.Response.PrepareCacheableResponse();
bundler.WriteResponse(context.Response, "text/javascript");
}