mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-23 05:25:47 +00:00
fix(docs): temp hack to get appcache properly invalidated
This commit is contained in:
parent
0356c90af8
commit
f9502d2ad3
1 changed files with 3 additions and 0 deletions
|
|
@ -10,6 +10,9 @@ RewriteEngine on
|
||||||
RewriteCond %{HTTP_COOKIE} ng-offline="NG_VERSION_FULL"
|
RewriteCond %{HTTP_COOKIE} ng-offline="NG_VERSION_FULL"
|
||||||
RewriteRule appcache.manifest appcache-offline.manifest
|
RewriteRule appcache.manifest appcache-offline.manifest
|
||||||
|
|
||||||
|
## Redirect to the latest manifest
|
||||||
|
RewriteCond %{HTTP_HOST} ^docs-next\.angularjs\.org$
|
||||||
|
RewriteRule appcache.manifest http://code.angularjs.org/next/docs/appcache.manifest [R=301]
|
||||||
|
|
||||||
## HTML5 URL Support ##
|
## HTML5 URL Support ##
|
||||||
RewriteRule ^(guide|api|cookbook|misc|tutorial)(/.*)?$ index.html
|
RewriteRule ^(guide|api|cookbook|misc|tutorial)(/.*)?$ index.html
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue