Skip to content

Commit f9502d2

Browse files
committed
fix(docs): temp hack to get appcache properly invalidated
1 parent 0356c90 commit f9502d2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/src/templates/.htaccess

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ RewriteEngine on
1010
RewriteCond %{HTTP_COOKIE} ng-offline="NG_VERSION_FULL"
1111
RewriteRule appcache.manifest appcache-offline.manifest
1212

13+
## Redirect to the latest manifest
14+
RewriteCond %{HTTP_HOST} ^docs-next\.angularjs\.org$
15+
RewriteRule appcache.manifest http://code.angularjs.org/next/docs/appcache.manifest [R=301]
1316

1417
## HTML5 URL Support ##
1518
RewriteRule ^(guide|api|cookbook|misc|tutorial)(/.*)?$ index.html

0 commit comments

Comments
 (0)