This is my first time coding for HTML5 with offline capabilities using MVC 3. Although I have a problem where mobile devices doesn't seem to cache and fails to load from cache when offline.
I have my header setup:
<!DOCTYPE html>
<html manifest="@Url.Content("~/offline.manifest")">
With my offline.manifest file located at the root of the application.
Since my app has a /Account/Login/Index
route, I added it to my manifest file:
CACHE MANIFEST
#version 0.0452
CACHE:
#Pages
Account/Login
also tried ~/Account/Login
for the pages.
The good news is, my manifest file works on Chrome. All files are loaded and are cached. However, this is not the same for my mobile devices.
My iPhone running 5.1.1 and Nexus S running Chrome on ICS doesn't seem to load from the cache when offline. I just turn off the Wifi radio and refresh the page, but Safari and Chrome doesn't load from cache.
Am I missing something here? Any clues would be appreciated. Thank you