How can i access the data included in html5, like this in header:
<script type="application/json" src="data.json">
Many people suggest using $.get("data.json"), however, that forces to load the data everytime. And the data is huge, and doesn't change often. It's a phonebook. So the point is to use that file from the browser's cache.
any ideas? is it posible?
304 - Not Modifiedheader. This header is controlled by your server, so is more reliable than letting the browser to control it. But for that, you will have to use a back-end response to control the headers, instead of requesting a file directly. If you're interested, I could post an answer of it.