Monday, 19 August 2013

How do you identify and serve gzipped content to Cloudfront in Asp.net mvc?

How do you identify and serve gzipped content to Cloudfront in Asp.net mvc?

I have an asp.net MVC application that serves static content through a
controller method that detects the "Accept-Encoding" header and serves
content accordingly. This was causing problems so I made the compressor
method return Gzipped content regardless of the header values, and I still
get Google PageSpeed telling me that content should be GZipped!
I have seen articles about configuring this in IIS at machine level, but
not how to get this to work when returning compressed content
programmatically.
Can anyone help? Many thanks.

No comments:

Post a Comment