Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Will my browser cache favicons from data URL

I would like to use the following base64 favicon and maybe some base64 images.

<link href="data:image/x-icon;base64,AAABAAEAEBAAAAAAAABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAAAEAAAAAAAAAAAAAAAEAAAAAAA..AMAK3WxwAOWT0AK4RgAKHOvQA4hWUAP4lqAD2MagBQm3kATKSBAECcdP//AAD8/wAA+H8AAPA/AADwPwAA4B8AAMAPAACABwAAAgMAAI8BAADfgAAA/8AAAP/AAAD/4QAA//MAAP//AAA=" rel="icon" type="image/x-icon" />

Will these get cached by my browser?

like image 991
MikeSwanson Avatar asked May 18 '11 14:05

MikeSwanson


People also ask

Are data urls cached?

Data URIs are not separately cached from their containing documents (e.g. CSS or HTML files) so data is downloaded every time the containing documents are redownloaded.

What data is stored in browser cache?

The browser cache is a temporary storage location on your computer for files downloaded by your browser to display websites. Files that are cached locally include any documents that make up a website, such as html files, CSS style sheets, JavaScript scripts, as well as graphic images and other multimedia content.

Does browser cache images automatically?

Yes the browser will cache them, often even when your headers say otherwise.

How does browser cache memory work?

The basic idea behind it is the following: The browser requests some content from the web server. If the content is not in the browser cache then it is retrieved directly from the web server. If the content was previously cached, the browser bypasses the server and loads the content directly from its cache.


1 Answers

No. Data URIs are not separately cached from their containing documents (e.g. CSS or HTML files) so data is downloaded every time the containing documents are redownloaded.

Source

like image 180
silent1mezzo Avatar answered Oct 04 '22 20:10

silent1mezzo