Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Nginx Serving GZIP files #235

Closed
chrisbag opened this issue Apr 12, 2022 · 1 comment
Closed

Nginx Serving GZIP files #235

chrisbag opened this issue Apr 12, 2022 · 1 comment

Comments

@chrisbag
Copy link

chrisbag commented Apr 12, 2022

Context
I am running a react app and am trying to serve gzip compressed files (ideally pre-compressed during build time).
I am using those two buildpacks :

  • heroku/nodejs
  • heroku-buildpack-static: it is said in the doc that on the fly gzip compression is included by default (not gzip_static unfortunately), which is the case when you check the Nginx template file

What is happening
From the browser side, a query with Accept-Encoding: gzip, deflate, br is included.
However the file served are not compressed on the fly (no size change, no gzip encoded in header response.

Have any of you managed to get gzip compression work ? Would you have any idea what I am doing wrong?
In the docs, it is mentioned to In case you have multiple buildpacks for the application you can ensure static rendering in Procfile with web: bin/boot.

Thanks a lot for your help 😀

@chrisbag chrisbag changed the title Serving GZIP files Nginx Serving GZIP files Apr 12, 2022
@edmorley
Copy link
Member

edmorley commented Jun 9, 2022

Hi

This buildpack is now deprecated and we are recommending people move the more actively maintained heroku-buildpack-nginx. For migration advice see here.

As such, I'm closing this issue out since we won't be making further changes to this buildpack.

@edmorley edmorley closed this as not planned Won't fix, can't repro, duplicate, stale Jun 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants