Attempting to extend cache for SVGs returns bad headers/content. #1496
In relation to #1221, I decided to try and extend the cache on SVGs and fonts that I had hashed outside of Pagespeed. With
The error appears to be because the content is no longer gzipped, though the header says otherwise. I tried to achieve this with the following config.
Interestingly, the woff fonts are fine. Turning off Gzipping for
Hopefully I have just made a silly config error. Any help much appreciated.
The text was updated successfully, but these errors were encountered:
Reproduced on master.
Maybe the fix is as simple as clearing the response headers before updating the status to 501.
When we send out a 501 in the IPRO path for a http cache hit, clear the response headers so we do not leave behind stray headers. Fixes #1496