That's great in production, but on dev you often need to test against
css/js/img changes
I found this approach works very well:
__init__.py
config.add_static_view('static', 'static',
cache_max_age=settings['static.cache_max_age'])
dev.ini
static.cache_max_age= 60
[ then i use 3600 on production.ini and 600 on staging.ini ]
2. migrate all the /static/ items to /static/pyramid/
it's too cluttered and slightly intimidating , and when you're playing
around... i want to clean out those files but I don't want to lose
them (yet).
Mike Orr
unread,
Feb 3, 2012, 12:32:34 PM2/3/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pylons...@googlegroups.com
On Fri, Feb 3, 2012 at 9:28 AM, Jonathan Vanasco <jona...@findmeon.com> wrote: > 2. migrate all the /static/ items to /static/pyramid/ > > it's too cluttered and slightly intimidating , and when you're playing > around... i want to clean out those files but I don't want to lose > them (yet).
+1
I usually delete them immediately, but when I started I was reluctant to because I didn't know which ones I might want to use or refer to.