Chromium Code Reviews| 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 # The version number should be something like rSVN_REVISION. | 8 # The version number should be something like rSVN_REVISION. |
| 9 version: remember to edit app.yaml before deploying | 9 version: remember to edit app.yaml before deploying |
| 10 # This version name is used to create a new host, for example, | 10 # This version name is used to create a new host, for example, |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 95 - url: /favicon\.ico | 95 - url: /favicon\.ico |
| 96 static_files: favicon.ico | 96 static_files: favicon.ico |
| 97 upload: favicon\.ico | 97 upload: favicon\.ico |
| 98 secure: always | 98 secure: always |
| 99 | 99 |
| 100 - url: / | 100 - url: / |
| 101 static_files: index.html | 101 static_files: index.html |
| 102 upload: index.html | 102 upload: index.html |
| 103 secure: always | 103 secure: always |
| 104 | 104 |
| 105 # The nossl file below help work around bugs/features in interaction between | |
| 106 # AppEngine and AppCache. When a return user goes to http://try.dartlang.org/ | |
| 107 # (no SSL), AppCache will serve index.html from cache, try to fetch the old | |
| 108 # manifest (nossl.appcache) and the files listed in the manifest. In additation | |
|
kasperl
2014/08/12 08:15:42
additation -> addition to
| |
| 109 # the files listed in the manifest, it will also fetch index.html, as it is the | |
| 110 # master. However, we want index.html to be redirected to the SSL version, and | |
| 111 # AppCache sees this redirection as a network error. When an error occurs, | |
| 112 # AppCache will keep serving the old page. So we configure nossl.appcache to | |
| 113 # provide fallbacks for index.html and leap.dart.js. The fallback for | |
| 114 # leap.dart.js is nossl.js which will take care of redirecting to | |
| 115 # https://try.dartlang.org/ (with SSL) using JavaScript. Unfortunately, Chrome | |
| 116 # seems to keep the old version of index.html cached indefinitely. The only way | |
| 117 # to avoid that appears to serve up a different index.html depending on if it | |
| 118 # is a secure connection or not. This would require a Python script, and | |
| 119 # something we may consider implementing in the future. | |
| 105 - url: /nossl.appcache | 120 - url: /nossl.appcache |
| 106 static_files: nossl.appcache | 121 static_files: nossl.appcache |
| 107 upload: nossl.appcache | 122 upload: nossl.appcache |
| 123 secure: optional | |
| 124 | |
| 125 - url: /nossl.js | |
| 126 static_files: nossl.js | |
| 127 upload: nossl.js | |
| 128 secure: optional | |
| 129 | |
| 130 - url: /nossl.html | |
| 131 static_files: nossl.html | |
| 132 upload: nossl.html | |
| 133 secure: optional | |
| 134 | |
| 135 - url: /ssl.appcache | |
| 136 static_files: ssl.appcache | |
| 137 upload: ssl.appcache | |
| 108 secure: always | 138 secure: always |
| 109 | 139 |
| 110 - url: /(.*\.(html|js|png|css|dart|json)) | 140 - url: /(.*\.(html|js|png|css|dart|json)) |
| 111 static_files: \1 | 141 static_files: \1 |
| 112 upload: (.*\.(html|js|png|css|dart|json)) | 142 upload: (.*\.(html|js|png|css|dart|json)) |
| 113 secure: always | 143 secure: always |
| 114 | 144 |
| 115 - url: /css/fonts/fontawesome-webfont.woff | 145 - url: /css/fonts/fontawesome-webfont.woff |
| 116 static_files: fontawesome-webfont.woff | 146 static_files: fontawesome-webfont.woff |
| 117 upload: fontawesome-webfont.woff | 147 upload: fontawesome-webfont.woff |
| 118 secure: always | 148 secure: always |
| 119 | 149 |
| 120 - url: .* | |
| 121 static_files: not_found.html | |
| 122 upload: not_found.html | |
| 123 secure: always | |
| 124 | |
| 125 libraries: | 150 libraries: |
| 126 - name: webapp2 | 151 - name: webapp2 |
| 127 version: "2.5.2" | 152 version: "2.5.2" |
| OLD | NEW |