# HTML help needed... Prevent loading from cache

**URL:** <https://boards.straightdope.com/t/html-help-needed-prevent-loading-from-cache/325430>\
**Category:** Factual Questions\
**Created:** [October 9, 2005, 7:50pm UTC](https://boards.straightdope.com/t/html-help-needed-prevent-loading-from-cache/325430 "2005-10-09T19:50:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TellMeI\_mNotCrazy](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/tellmei_mnotcrazy/32/3419_2.png) [@TellMeI\_mNotCrazy](https://boards.straightdope.com/u/TellMeI_mNotCrazy)\
**Post date:** [October 9, 2005, 7:50pm UTC](https://boards.straightdope.com/t/html-help-needed-prevent-loading-from-cache/325430/1 "2005-10-09T19:50:27Z")

</div>

I have a blog that gets updated frequently. However, about 50% of the time, if I just load the page, it loads it from the cache and doesn’t show the update unless I force a hard-refresh.

Is there a line of code that I can insert into the page to force it to load fresh every time and ignore anything that might be in the cache?

---

<div class="post-metadata">

**Author:** ![Erinaceus\_europaeus](https://avatars.discourse-cdn.com/v4/letter/e/e47774/32.png) [@Erinaceus\_europaeus](https://boards.straightdope.com/u/Erinaceus_europaeus)\
**Post date:** [October 9, 2005, 8:24pm UTC](https://boards.straightdope.com/t/html-help-needed-prevent-loading-from-cache/325430/2 "2005-10-09T20:24:23Z")

</div>

You either configure the web-server to send out the correct caching headers, or you can use META tags. There is some information here: [http://www.allmyfaqs.com/faq.pl?No\_cache](http://www.allmyfaqs.com/faq.pl?No_cache)
