Gzip for html pages with no file extension



  • Austin Spires

    Hey Joe -- the default conditionals for our gzipping are an "or" style logical operation, so the content type without the explicit file extension should be gzipping.

    Are you testing this via curl or a browser? If you're testing via curl, make sure you send the --compressed flag in the command. If you're testing with a browser and still not seeing compression, our support team probably needs to take a look at the full request and your service.

    If you're not comfortable putting that information in the forum, you can send an email to support@fastly.com with a link to this topic and we can start debugging from there.

  • Joe Zulli

    Hi aspires,

    Well, as usual for me, right after I complain about something online, it seems suddenly start working. I was using Chrome to test and was pretty sure I was not getting Content-Encoding: gzip in my response headers, but I definitely am now. Perhaps it just tool longer than I expected to propagate.

  • Austin Spires

    What could have been happening was the original response was being cached without the Accept-Encoding handling that you deployed. If this happens again with a different URL, purging the object may fix the problem.

Please sign in to leave a comment.