Response ResponseWithBundle(BundleAsset bundle, string contentType)
 {
     var response = new TextResponse(bundle.obfuscated_source, contentType);
     response.Headers["ETag"] = bundle.ETag;
     response.Headers["Cache-Control"] = bundle.GetCacheControl();
     return response;
 }
Esempio n. 2
0
        Response ResponseWithBundle(BundleAsset bundle, string contentType)
        {
            var response = new TextResponse(bundle.obfuscated_source, contentType);

            response.Headers["ETag"]          = bundle.ETag;
            response.Headers["Cache-Control"] = bundle.GetCacheControl();
            return(response);
        }