my resource expiry does work. In my app.yaml it looks like:
- url: /media
  static_dir: media/
  expiration: '100d'

The main differences to yours which you might want to try are: the
trailing slash on the static_dir, and a simpler expiration directive.

On Jul 28, 7:40 pm, Rizky <br4inwas...@gmail.com> wrote:
> hi all,
>
> i'm having problems configuring cache durations for my static files.
> i've set the expiration period up to 30 days. but it didn't work.
>
> here's the response headers i'm getting:
> -----------------------------------------------------
> Date     Tue, 28 Jul 2009 09:14:52 GMT
> Expires Tue, 28 Jul 2009 09:24:52 GMT
> Content-Type    text/css
> Content-Encoding        gzip
> Server  Google Frontend
> Content-Length  2506
> Cache-Control   public, max-age=600
> Age     187
> -----------------------------------------------------
>
> and here's a copy of my app.yaml file. can someone help me point out
> where i'm doing wrong? thx.
>
> -----------------------------------------------------
> application: ########
> version: 1
> runtime: python
> api_version: 1
>
> handlers:
> - url: /assets
>   static_files: assets/index.html
>   upload: assets/index.html
>
> - url: /assets
>   static_dir: assets
>
> - url: /assets/css
>   static_dir: assets/css
>
> - url: /assets/js
>   static_dir: assets/js
>
> - url: /assets/img
>   static_dir: assets/img
>   expiration: "30d 5h"
>
> - url: /uploads
>   static_dir: uploads
>   expiration: "30d 5h"
> -----------------------------------------------------
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to