MVC4 bundling GZIP and headers
Posted
by
plurby
on Stack Overflow
See other posts from Stack Overflow
or by plurby
Published on 2012-08-27T08:09:37Z
Indexed on
2012/08/29
21:38 UTC
Read the original article
Hit count: 568
gzip
|asp.net-mvc-4
I'm testing my site with Google PageSpeed and YSlow and the bundles that i've created with MVC4 bundles aren't getting
Gzipped (Compressing resources with gzip or deflate can reduce the number of bytes sent over the network) and there is no
Vary: Accept-Encoding header (Instructs proxy servers to cache two versions of the resource: one compressed, and one uncompressed. This helps avoid issues with public proxies that do not detect the presence of a Content-Encoding header properly.)
And also how can i add encoding header for the whole scripts folder on the ISS. I know there is HTTP Response Headers, then Add Custom HTTP Response Header,
but will this work on the whole scripts folders and subfolders and what to put in the Name and Value fields.
How can this be solved.
Regards.
© Stack Overflow or respective owner