greengerong / Prerender_asp_mvc

Prerende client for asp.net mvc
http://prerender.io/
86 stars 39 forks source link

Add gzip support #4

Closed thoop closed 7 years ago

thoop commented 10 years ago

The latest version of the Prerender server will return gzipped content to the middleware if the Accept-Encoding: gzip header is provided.

In our Node/Rails middleware, we currently always send the Accept-Encoding: gzip header and always unzip the response when it comes back from the server. That way, we save on bandwidth.

Supporting gzip with the ASP.NET middleware would be great! You could also decide to not unzip the response if the user sent the Accept-Encoding: gzip header in order to leave it compressed.

greengerong commented 10 years ago

@thoop when i am free, i will add this function.

greengerong commented 7 years ago

Done https://github.com/greengerong/Prerender_asp_mvc/blob/master/Prerender.io/PrerenderModule.cs#L59.