Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

Forcing Nginx to send Content-Length headers when serving static files with gzip

It turns out that when using dynamic Gzip then the Content-Length header is not sent, as the Transfer-Encoding is chunked. Pre-compressing my files and switching to static Gzip allows Nginx to know ahead of time the file size and send an appropriate Content-Length header.

Tags:

Nginx

Gzip

Static Content

Related

calculating days until disk is full Identify Windows 2012 Server core How do I list all connected Salt Stack minions? How to cleanup after failed rsync? Third-party SSD solutions in ProLiant Gen8 servers NetworkManager is not changing /etc/resolv.conf after openvpn dns push Device /dev/sdb1 not found (or ignored by filtering) How to prevent gpg from creating .gnupg directory in user's home directory Is it possible to on-line shrink a EXT4 volume with LVM? How to change rc.d startup order in FreeBSD? Why does OpenStack distinguish images from snapshots? `mysql_upgrade` is failing with no real reason given

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy