Git Product home page Git Product logo

Comments (9)

adamchainz avatar adamchainz commented on August 15, 2024

Is the Accept-Encoding header being sent correctly? How are you testing?

from whitenoise.

andyp05 avatar andyp05 commented on August 15, 2024

Accept-Encoding is set to: gzip, deflate, br
Using Postman app to send request for a css file.
In this case, I now have it return gzip.

Edited Accept-Encoding to just br
IIS sends uncompressed file. Confirmed by looking at bytes downloaded.

The test.css.br file is in my static folder.

from whitenoise.

adamchainz avatar adamchainz commented on August 15, 2024

Browsers only use Brotli compression over HTTPS, it may be that IIS follows this. Are you testing over HTTPS?

from whitenoise.

andyp05 avatar andyp05 commented on August 15, 2024

Yes it is over HTTPS. I tested and pulled a css file from another site and it came in as br
Whitenoise must be sending the file because I have Static File Handling in IIS turned off and the css file I get has the MD5 hash in the filename.

from whitenoise.

adamchainz avatar adamchainz commented on August 15, 2024

I'm afraid I can't help you further here, unless you can provide a simple reproduction (I've never used IIS, maybe you can give e.g. Docker commands to run it, along with a sample project).

But mostly I think you'll need to roll your sleeves up and debug each stage, maybe add print statements inside your app/whitenoise to see what headers are actually getting through, where Whitenoise is deciding not to send brotli, etc.

from whitenoise.

andyp05 avatar andyp05 commented on August 15, 2024

Will do.
I will post any solution in case this comes up again for another user.
Thanks

from whitenoise.

andyp05 avatar andyp05 commented on August 15, 2024

I am using Cloudflare CDN and they only request gzip from origin. I turned off proxy and put in development mode to test and the request is still gzip. That surprised me, but this issue is resolved.
Thanks for your help.

from whitenoise.

adamchainz avatar adamchainz commented on August 15, 2024

Problem solved then!

from whitenoise.

andyp05 avatar andyp05 commented on August 15, 2024

I am using Cloudflare CDN and they only request gzip from origin. I turned off proxy and put in development mode to test and the request is still gzip. That surprised me, but this issue is resolved.
Thanks for your help.

from whitenoise.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.