How to prevent the browser using the cache

Just starting out? Need help? Post your questions and find answers here.
Stefan
Posts: 160
Joined: Mon Feb 05, 2018 9:44 pm

How to prevent the browser using the cache

Post by Stefan »

I often change litte things in my side, so the browser does't recognize it and it load the old side.
How to prevent the browser using the cache?
User avatar
Arbrakaan
Posts: 91
Joined: Mon Feb 24, 2014 10:54 pm
Location: Geneva
Contact:

Re: How to prevent the browser using the cache

Post by Arbrakaan »

Did you use ctrl-F5 to purge the cash when refreshing the page ?
Stefan
Posts: 160
Joined: Mon Feb 05, 2018 9:44 pm

Re: How to prevent the browser using the cache

Post by Stefan »

Not I!
How can I program by code, that a browser recognize every change?
plouf
Posts: 194
Joined: Tue Feb 25, 2014 6:01 pm
Location: Athens,Greece

Re: How to prevent the browser using the cache

Post by plouf »

have to insert meta tag's in header's
<meta http-equiv="Cache-Control" content="no-store" />
Christos
Stefan
Posts: 160
Joined: Mon Feb 05, 2018 9:44 pm

Re: How to prevent the browser using the cache

Post by Stefan »

How can I do that?
plouf
Posts: 194
Joined: Tue Feb 25, 2014 6:01 pm
Location: Athens,Greece

Re: How to prevent the browser using the cache

Post by plouf »

if you "create" a web app SB create some files, including a HTML file that its actually loading the script
inside this HTML file inside <head> add the meta tag
(sb's created .html already have a meta tag for character)
Christos
Stefan
Posts: 160
Joined: Mon Feb 05, 2018 9:44 pm

Re: How to prevent the browser using the cache

Post by Stefan »

Unfortunately it does't work.
Is there a way do do this with spiderbasic?
tj1010
Posts: 201
Joined: Wed May 27, 2015 1:36 pm
Contact:

Re: How to prevent the browser using the cache

Post by tj1010 »

https://developers.google.com/web/funda ... tp-caching

URL/GET variable changing

Works with already cached elements which can't even be updated with HTTP headers and will stay the same till user cleares cache or the time expires on it otherwise.

You'll want cache some places bandwidth costs money.. That article shows best practice(basically different file names for different cache policies)
Post Reply