Comments (9)
Is the Accept-Encoding
header being sent correctly? How are you testing?
from whitenoise.
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.
Browsers only use Brotli compression over HTTPS, it may be that IIS follows this. Are you testing over HTTPS?
from whitenoise.
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.
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.
Will do.
I will post any solution in case this comes up again for another user.
Thanks
from whitenoise.
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.
Problem solved then!
from whitenoise.
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)
- SSL handshake and open() errors after enabling whitenoise HOT 1
- Python 3.11 support? HOT 2
- Should not handle POST, PUT or DELETE HTTP methods? HOT 2
- Can some files be excluded? HOT 1
- Static files not found / bad args passed to finders.find (dev, Windows) HOT 2
- Azure app service web application is throwing 500 internal server error when using whitenoise - CompressedManifestStaticFilesStorage and DEBUG = False HOT 5
- Clarify interaction between WHITENOISE_KEEP_ONLY_HASHED_FILES and WHITENOISE_ROOT HOT 2
- Clarification for using whitenoise with CDN on digital ocean HOT 2
- do not raise exception if sourceMappingURL rereferenced map is missing HOT 1
- Documentation pointer for nginx users HOT 3
- whitenoise.storage.MissingFileError HOT 1
- Upgrade to Django 4.2 raises new warning HOT 9
- `render` and `redirect` not working with Django, Gunicorn, and Whitenoise HOT 2
- Merge ASGIWhiteNoise HOT 3
- Django app on Azure: STORAGES (previously STATICFILES_STORAGE) WhiteNoise variable breaks application HOT 1
- Random PostgreSQL connection errors HOT 12
- whitenoise's scantree slows down test suite performance HOT 9
- STORAGES results in Server Error 500 HOT 6
- ValueError: Missing staticfiles manifest entry for 'css/animate.css' & results in Server Error 500
- [Question] Under what set of circumstances is WHITENOISE_MANIFEST_STRICT evaluated? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whitenoise.