Skip to content

Instantly share code, notes, and snippets.

@aaronj1335
Created November 5, 2012 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronj1335/4017494 to your computer and use it in GitHub Desktop.
Save aaronj1335/4017494 to your computer and use it in GitHub Desktop.
uwsgi caching issue
uwsgi:
http-socket: 0.0.0.0:8001
master: true
processes: 1
module: spire.runtime.uwsgi
static-map: /static=static
GET /static/components/lookandfeel/daft.css HTTP/1.1
Host: localhost:8001
Connection: keep-alive
Cache-Control: max-age=0
If-Modified-Since: Mon, 05 Nov 2012 13:41:43 GMT
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.18 (KHTML, like Gecko) Chrome/25.0.1317.0 Safari/537.18
Accept: */*
Referer: http://localhost:8001/infoset/00000000-0000-0000-0000-000000000000/filter
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: sessionid=bddc9acfa39149128a35b4d7517814ed62d55c36
HTTP/1.1 304 Not Modified
Cache-Control: must-revalidate, no-cache
§ stat -x static/components/lookandfeel/daft.css
File: "static/components/lookandfeel/daft.css"
Size: 25494 FileType: Regular File
Mode: (0644/-rw-r--r--) Uid: ( 501/ astacy) Gid: ( 20/ staff)
Device: 1,4 Inode: 10134828 Links: 1
Access: Mon Nov 5 08:23:16 2012
Modify: Mon Nov 5 08:11:22 2012
Change: Mon Nov 5 08:11:22 2012
§ date
Mon Nov 5 08:36:47 CST 2012
uwsgi --virtualenv .virtualenv \
--touch-reload daft.astacy.yaml \
--touch-reload daft/__init__.py \
--touch-reload daft/context_processors.py \
--touch-reload daft/urls.py \
--touch-reload daft/views.py \
--touch-reload node_modules/siq-lookandfeel/strings.yaml \
--add-header Cache-Control: must-revalidate, no-cache \
--static-map /static/components/auxl=/Users/astacy/work/auxl/src \
--static-map /static/components/bedrock=/Users/astacy/work/bedrockjs/src \
--static-map /static/components/csi=/Users/astacy/work/csi/src \
--static-map /static/components/daft=/Users/astacy/work/daft/src \
--static-map /static/components/dax=/Users/astacy/work/dax/src \
--static-map /static/components/gloss=/Users/astacy/work/gloss/src \
--static-map /static/components/lookandfeel=/Users/astacy/work/lookandfeel/src \
--static-map /static/components/mesh=/Users/astacy/work/mesh/js \
--static-map /static/components/vendor=/Users/astacy/work/vendorjs/src \
--mime-file /Users/astacy/code/siq/bin/../etc/mime.types \
--workers 2 \
--yaml daft.astacy.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment