next-boost / next-boost

Add a cache layer for server-side-rendered pages with stale-while-revalidate. Can be considered as an implementation of next.js's Incremental Static Regeneration which works with getServerSideProps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: content-length

TomasSlama opened this issue · comments

Hi,

I'm sorry if it is obvious, but since I'm newbie at server part, I'm trying to understand what was your idea about removing content-length header. Why is it necessary to remove it?

We have contents that may or may not gzipped, but the output is always gzipped. So the content-length is removed from next's response.

Here's a modification with content-length

02c2731