Il giorno 20/set/2010, alle ore 16.02, writeson ha scritto:

> Hi all,
> I've been building some Pylons web applications for our Intranet.
> These are deployed using a standalone uwsgi server (http://
> projects.unbit.it/uwsgi), which seems to work well, except for one
> issue. I've incorporated the GzipMiddleware.py code shown in the
> Pylons book into my config/middleware.py code. This works great when
> run with paster, but when my application is deployed under uwsgi the
> files that are supposed to get gzipped (*.css, *.js) are reporting
> back:
> 
> NS_ERROR_INVALID_CONTENT_ENCODING
> 
> in HttpFox. Does anyone have any ideas, suggestions or pointers that
> might help me out? My applications use quite a few jQuery plugin files
> as well as jQuery UI css files, so I'd like to compress these if I
> can.



Why are you serving those files via uWSGI ?

You should serve static files via the webserver, it is the right tool for the 
job.

(obviously if they are dinamically generated ignore my response)

By the way, could you post this "GzipMiddleware.py" so i can check it ?


Thanks

--
Roberto De Ioris
http://unbit.it
JID: [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to