I generate output with php. I've been reading about caching HTML elements (e.g. images, text) in the browser so that these don't have to be reloaded.
However, I haven't found the right directions on how to get it done. It's like "simply cache the elements you want and you're done!" - great, but how do I cache something like this:
<div id="ubiquitous_heading">
<img src="logo.png" alt="logo" />
<span>Welcome to this dummy website</span>
</div>
Is there a header that can target HTML elements and designate what to cache and what not? I'm referring to something structured like:
#ubiquitous_heading {
cache: yes;
}
#no_cache_please {
cache: no;
}
Is there a way to do that? What exactly do people mean when they say "you can cache a specific element in your HTML?
" referring to every element (including links to css, js).
Thank you for clearing this up for me.