‘Content Encoding Error’ In Firefox When Using MVC Framework
The problem I’m about to explain had me stumped, good and proper. There I am, working away happily on a basic PHP MVC framework, when BHAM! Life comes to a standstill and I spend the next hour or so trying to debug why I’m getting a ‘Content Encoding Error’ appear in Firefox.
After commenting out a bit of code at a time until the error disappeared, it turns out that the error showed when I had output prior to the templates/views in the MVC framework being loaded. By output I mean an error and/or echoing debug information. Any content output to the screen prior to the views being loaded caused this error so show.