Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome downloads gzip compressed file when served by rocket-nginx #45

Closed
slayer49 opened this issue Feb 6, 2017 · 1 comment
Closed

Comments

@slayer49
Copy link

slayer49 commented Feb 6, 2017

After enabling rocket-nginx, static gzip compressed files are served as downloads instead of displaying the page in the browser.

I can not figure out why.

I am using a reverse proxy in front of the nginx server with rocket-nginx enabled,

These are the headers received for the cached file.

accept-ranges:bytes

cf-ray:32d01df8b815514c-SJC

content-length:40089

content-type:application/octet-stream

date:Mon, 06 Feb 2017 16:53:13 GMT

etag:"5898a388-9c99"

last-modified:Mon, 06 Feb 2017 16:25:44 GMT

server:cloudflare-nginx

status:200

x-rocket-nginx-bypass:Yes

@slayer49
Copy link
Author

slayer49 commented Feb 6, 2017

Closing because I found the issue, I use a custom wp-content location and I needed to change the locations for the static files. Is it possible for this to be dynamic based on the configuration options at the top of the file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant