I have a problem, when I create a directory(/static) in my project
path, in this dir create a style.css
# template.html
<link rel="stylesheet" type="text/css" href="/static/style.css"/>
...

the web is very slowly...
why do it?
3Q

On 10月6日, 上午7时50分, "Angelo Gladding" <[EMAIL PROTECTED]> wrote:
> It sounds like you're referring to the "baking" vs. "frying" methods of
> serving more or less static content.
>
> I'm not sure if there is a term for this, but I'd like to be able to
>
> > dynamically generate a page with web.py, and then serve it as a static
> > page.
>
> If you simply want to create the illusion of a static page instructing (in
> theory) the browser to keep a prolonged version in the cache you can set a
> faraway expiration date in the headers of the document with the following
> command:
>
> expires(delta) : Outputs an Expires header for delta from now. delta is a
> timedelta object or a number of seconds.
>
> Hope that helps,
> Angelo
>
> On 9/24/07, Werner Hartnagel <[EMAIL PROTECTED]> wrote:
>
>
>
> > I believe this is a little offtopic and not webpy related but u can do
> > that with wget and some BASH magic.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to