Static files? In the end it is the browser that caches them. web2py
does not ask the browser to cache them.
You can try serve them using a custom controller. In this case web2py
would do (under the hood):
response.headers['Content-Type'] =
contenttype('.'+request.extension)
Yes, static files. I am basically asking how to set the cache control
headers for static files. Models don't get processed so I'm not sure
where to do it without hacking main.py. Am I thinking about this
wrong?
On Mar 15, 10:37 am, mdipierro mdipie...@cs.depaul.edu wrote:
Static files? In the
You raise a good point. There is no way to do it because I assume on a
production system this should be done by the web server.
Perhaps we should have something like routes.static.py in the static
folder with cache configuration options for the files in there.
On Mar 15, 11:00 am, mr.freeze
Ahah! One step closer to app level routes!
-Thadeus
On Mon, Mar 15, 2010 at 11:15 AM, mdipierro mdipie...@cs.depaul.edu wrote:
You raise a good point. There is no way to do it because I assume on a
production system this should be done by the web server.
Perhaps we should have something
On Mar 15, 2010, at 9:42 AM, Thadeus Burgess wrote:
Ahah! One step closer to app level routes!
Hmm, that's a good thought. I'm looking at the overall handling of URL parsing
and routing, and hadn't been thinking about this.
So what I'm thinking now is that the global routing would be only the
shold this problem be solved as part of an app-level routes? I was
looking at it as different.
On Mar 15, 11:42 am, Thadeus Burgess thade...@thadeusb.com wrote:
Ahah! One step closer to app level routes!
-Thadeus
On Mon, Mar 15, 2010 at 11:15 AM, mdipierro mdipie...@cs.depaul.edu wrote:
When all you have is a hammer, everything looks like a nail.
--/Maslow's hammer/
On 3/15/2010 11:42 AM, Thadeus Burgess wrote:
Ahah! One step closer to app level routes!
-Thadeus
On Mon, Mar 15, 2010 at 11:15 AM, mdipierromdipie...@cs.depaul.edu wrote:
You raise a good point. There
I was just raising the point that if we are going to have routes for
static files, why not have routes for the app while we are at it?
At least this way, the routes would be more portable so that routes
can then be packed along with your app?
Or would this be trying to open a can of worms that
On Mar 15, 2010, at 12:54 PM, mdipierro wrote:
Not at all. app level routes would be feasible and easy to implement.
I just did not have the time. The issue is not implementing as much as
designing the syntax.
Should the main routes delegate? Should it be explicit? Should it be
implicit?
In general I think the routes.py should be in applicaitons/app/
On Mar 15, 3:28 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Mar 15, 2010, at 12:54 PM, mdipierro wrote:
Not at all. app level routes would be feasible and easy to implement.
I just did not have the time. The issue is
10 matches
Mail list logo