Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cache manifest and query strings

Tags:

html

caching

I am investigating using a cache manifest. If I have a manifest such as:

CACHE MANIFEST
stylesheets/style.css

And in the page I have a CSS element referencing stylesheets/style.css?v=123.

Will the style.css file be retrieved from the cache or remotely?

like image 644
Craig Avatar asked May 12 '11 23:05

Craig


1 Answers

Just an additional note: if you have HTML pages that expects data in query strings, you could store the same data in localStorage and after redirection can get access the same data in the other page from localStorage.

That is how I solved passing data between pages where we cannot use the query string option with offline cache manifest files.

like image 99
Joson Avatar answered Sep 30 '22 01:09

Joson