On 04/09/2009, [email protected] <[email protected]> wrote:
>
>  I have about 10 javascript/css files which are included in my html
>  pages, but it takes 1+ second to load each file on the development
>  server.

remember the dev server is single threaded, so can only serve one
request at a time.

Many people use a proxy or other hybrid approach for local
development, which offers more control over static content.

>  This is highly anoying. Why isn't my static_dir handler using
>  Last-Modified/If-Modified-Since?

Probably because Googles Static Server doesn't use those headers. So
its designed to mimik the same behaviour.


>  - url: /js
>   static_dir: js
>  - url: /css
>   static_dir: css
>
>  I've tried to set a expiration on the handlers as well as a
>  default_expiration.

Thats setting the Expires and Cache-Control headers, which from the
below looks to be working.

>
>  These are the headers when I have expiration set:
>  Server  Development/1.0
>  Date    Fri, 04 Sep 2009 10:41:13 GMT
>  Content-Type    application/x-javascript
>  Expires Fri, 04 Sep 2009 11:41:13 GMT
>  Cache-Control   public, max-age=3600
>  Content-Length  100240
>
>  These are when expiration isn't set:
>  Server  Development/1.0
>  Date    Fri, 04 Sep 2009 10:41:18 GMT
>  Content-Type    text/css
>  Cache-Control   no-cache
>  Expires Fri, 01 Jan 1990 00:00:00 GMT
>  Content-Length  100240

A tip I have found useful, is to avoid the use of F5 as much as
possible (even in development) - if want to see the result of changes
press the Go button in browser (in IE/chrome at least) - later FF have
to click in the address bar and press enter.

This 'reloads' the main page, but any content with still future
expires are not refreshed.







>  >
>


-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to