Can anyone help? I have been designing a site using Javascript but the rest of the html content is static ie. images etc
When i load my page in Firefox i have to clear the cache..
I remember a long time ago there was something you could add to the html to force a reload.
My question is, is this a good thing? I presume it caches for a reason i.e to cahce images etc.. But this causes my pages not to refresh
And how to do it?
Really appreciate any feedback
For web pages you can how the page is cached in the HTTP Header. You should look at
Expiresif you have a particular date for the cache to expire orCache-Controlfor dynamic expiration based on when the page was requested. Here’s a pretty good tutorial that covers how cache works and covers set up on the major web servers.