>
> Although since the files are really not dynamic, they could be 
> aggressively cached.
>

Good point.

@cache(request.env.path_info, time_expire=60*60*24, cache_model=cache.ram)
def css_js():
    response.view = '../static/%s' % '/'.join(request.args)
    return response.render()

caches for a day. Still won't be as fast as using the web server to serve a 
static file, though. You could also set response.headers to tell the 
browser to cache the files, which would probably be a bigger benefit.

Anthony

Reply via email to