I need to store my js files on browser to reduce load time.
I know that I can use local storage but its not proper way of storing files on browser , its made to store data not files.
Cache manifest we can use , but can I access it while I am online?
Also can specify if there is any better way to store js/css files on browser.
Asked
Active
Viewed 186 times
1

Debugger
- 544
- 1
- 9
- 25
-
Yes, even when online, the cached files will be used as appropriate. – Thilo Jun 04 '12 at 09:20
-
Can you please link some example , or link. – Debugger Jun 04 '12 at 09:25
2 Answers
1
Your JavaScript files will be automatically stored in browser caches according to normal cache principles and procedures, see http://www.mnot.net/cache_docs/
You can use a cacheability tester like http://www.ircache.net/cgi-bin/cacheability.py to check the cacheability of a resource, including .js files.
The so-called cache manifest in HTML5 drafts is meant for use in applications that change rarely and can be used offline. For normal pages, it just makes things more complicated and risky.

Jukka K. Korpela
- 195,524
- 37
- 270
- 390
0
In HTML5 there is special feature for caching using manifest file.. please visit following link.. http://html5doctor.com/go-offline-with-application-cache/ It will be helpful for you..

Sundar
- 159
- 1
- 9