Comments (6)
It looks like the files are being served by Apache, not by WhiteNoise. Here are the headers I get for http://107.178.250.104/static/scripts_dist/common.min.b947a82fca17.js
:
Accept-Ranges: bytes
Content-Length: 311617
Content-Type :application/javascript
Date: Tue, 21 Jul 2015 14:52:59 GMT
ETag: "4c141-51b632630d500"
Last-Modified: Tue, 21 Jul 2015 14:05:40 GMT
Server: Apache/2.4.10 (Debian) mod_wsgi/4.4.12 Python/2.7.9
Via: 1.1 google
Possibly you have Apache configured to check for static files before proxying to Django.
from whitenoise.
That sounds very plausible. I haven't configured anything in Apache though. I'm simply using runmodwsgi(mod_wsgi-express). Any ideas to how i could stop apache messing with my staticfiles ? maybe moving them out of the project folder ?
from whitenoise.
It looks like runmodwsgi
is to blame here, as it serves STATIC_ROOT
if it's defined and there's no option to turn that behaviour off (I've just had a look at the code here.)
You could try filing a feature request with Graham to be able to disable that behaviour.
from whitenoise.
Dayum :/ Ill try and make a request with Graham. Or else i will just fire up the application with exec mod_wsgi-express instead. If whitenoise can handle the staticfiles, using runmodwsgi doesn't really add any convenience. I'll give it a go and report back
from whitenoise.
Seems to work when launching with mod_wsgi-express . My header now looks lige this
Access-Control-Allow-Origin:*
Cache-Control:public, max-age=315360000
Connection:close
Content-Encoding:gzip
Content-Length:101250
Content-Type:application/javascript; charset="utf-8"
Date:Tue, 21 Jul 2015 17:55:49 GMT
Last-Modified:Tue, 21 Jul 2015 14:58:23 GMT
Server:Apache/2.4.10 (Debian) mod_wsgi/4.4.12 Python/2.7.9
Vary:Accept-Encoding
Is this correct ? I
from whitenoise.
Yep, that looks correct. Glad you got it working.
from whitenoise.
Related Issues (20)
- 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 13
- 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
- FileNotFoundError during scantree() caused by broken symlink
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.