OLD | NEW |
---|---|
1 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 # App Engine configuration, see: | 5 # App Engine configuration, see: |
6 # https://developers.google.com/appengine/docs/python/config/appconfig | 6 # https://developers.google.com/appengine/docs/python/config/appconfig |
7 | 7 |
8 application: try-dart-lang | 8 application: try-dart-lang |
9 version: 5-sdk1-0 | 9 version: 7 |
kustermann
2014/01/15 01:24:23
I think you should change "version: 7" to "version
ahe
2014/01/15 14:09:38
I changed it to:
version: remember to edit app.ya
| |
10 runtime: python27 | 10 runtime: python27 |
11 api_version: 1 | 11 api_version: 1 |
12 threadsafe: yes | 12 threadsafe: yes |
13 | |
14 # Set "Cache-Control" and "Expires" HTTP headers to only cache for one second. | |
15 # We do this because we frequently push new changes and rely on AppCache for | |
16 # caching. Once files are installed in AppCache, the site launches | |
17 # immediately. | |
18 # | |
19 # Problem: PageSpeed Insights doesn't realize that we use AppCache and keeps | |
20 # nagging about caching. | |
21 # Soluion: Ignore its advice about "Leverage browser caching". | |
kasperl
2014/01/14 15:37:33
Soluion -> Solution.
ahe
2014/01/15 14:09:38
Done.
| |
13 default_expiration: 1s | 22 default_expiration: 1s |
14 | 23 |
15 handlers: | 24 handlers: |
16 | 25 |
17 - url: /favicon\.ico | 26 - url: /favicon\.ico |
18 static_files: favicon.ico | 27 static_files: favicon.ico |
19 upload: favicon\.ico | 28 upload: favicon\.ico |
20 secure: never | 29 secure: never |
21 | 30 |
22 - url: / | 31 - url: / |
23 static_files: index.html | 32 static_files: index.html |
24 upload: index.html | 33 upload: index.html |
25 secure: never | 34 secure: never |
26 | 35 |
27 - url: /nossl.appcache | 36 - url: /nossl.appcache |
28 static_files: nossl.appcache | 37 static_files: nossl.appcache |
29 upload: nossl.appcache | 38 upload: nossl.appcache |
30 secure: never | 39 secure: never |
31 | 40 |
32 - url: /(.*\.(html|js|png|css|dart|json)) | 41 - url: /(.*\.(html|js|png|css|dart|json)) |
33 static_files: \1 | 42 static_files: \1 |
34 upload: (.*\.(html|js|png|css|dart|json)) | 43 upload: (.*\.(html|js|png|css|dart|json)) |
35 secure: never | 44 secure: never |
36 | 45 |
37 - url: /css/fonts/ | 46 - url: /css/fonts/fontawesome-webfont.woff |
38 static_dir: font | 47 static_files: fontawesome-webfont.woff |
48 upload: fontawesome-webfont.woff | |
39 secure: never | 49 secure: never |
40 | 50 |
41 error_handlers: | 51 - url: .* |
kustermann
2014/01/15 01:24:23
Shouldn't this be "/.*" ? [I don't think it can e
ahe
2014/01/15 14:09:38
It works without the slash.
| |
42 - file: static/not_found.html | 52 static_files: not_found.html |
53 upload: not_found.html | |
54 secure: never | |
43 | 55 |
44 libraries: | 56 libraries: |
45 - name: webapp2 | 57 - name: webapp2 |
46 version: "2.5.2" | 58 version: "2.5.2" |
OLD | NEW |