2011-07-21 02:29:54 +00:00
|
|
|
## OFFLINE SUPPORT ##
|
2011-07-19 23:58:40 +00:00
|
|
|
|
2011-07-21 02:29:54 +00:00
|
|
|
# These rules tell apache to check if there is a cookie called "offline", with value set to the
|
|
|
|
|
# current angular version. If this rule matches the appcache-offline.manifest will be served for
|
|
|
|
|
# requests to appcache.manifest
|
|
|
|
|
#
|
2012-10-21 06:37:59 +00:00
|
|
|
# This file must be processed by Grunt in order to replace %ANGULAR_VERSION% with the actual version.
|
2011-07-19 23:58:40 +00:00
|
|
|
|
2012-10-05 23:43:01 +00:00
|
|
|
Options -Indexes
|
2011-07-21 02:29:54 +00:00
|
|
|
RewriteEngine on
|
|
|
|
|
RewriteCond %{HTTP_COOKIE} ng-offline="NG_VERSION_FULL"
|
2011-08-30 09:47:24 +00:00
|
|
|
RewriteRule appcache.manifest appcache-offline.manifest
|
|
|
|
|
|
2012-01-17 11:10:33 +00:00
|
|
|
## 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]
|
2011-08-30 09:47:24 +00:00
|
|
|
|
|
|
|
|
## HTML5 URL Support ##
|
|
|
|
|
RewriteRule ^(guide|api|cookbook|misc|tutorial)(/.*)?$ index.html
|