Category: ASP.NET
-
Gzip WebApi Response Content using an attribute
Today I was asked why json responses from WebApi was not being gzipped since it brought down our score on Google Page Speed. So yet again I started my ongoing fight with Google Page Speed. It turns out that we had issues making IIS gzip application/json data. Since we do not have direct access to…
-
How to gzip svg files in ASP.NET
My previous post showed how to gzip svg files served by the Sitecore media library. This is fine if all svg files reside in the media library but this is typical not the case. In this post I will show how to gzip compress any svg files served by your ASP.NET solution. As I explained in my…
-
HTTPS in Sitecore
I would always recommend running all production site cms’ using security on the transport layer (https). Sitecore or no Sitecore, it is not safe to first send username and password unencrypted and then following having an insecure session cookie for the authentication information. This applies for both extranet users and the backend administrators. A basic…
-
Minify html in Sitecore
Pleasing Google Page Speed Minifying resources such as Javascript and CSS is becoming common practice nowadays and something which just should be done with no questions asked. The reason for minification is both to reduce the payload and to reduce the number of requests made by the browser to the server. This makes the page…