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

How to prevent the browser using the cache

by Stefan Thu Mar 15, 2018 8:45 am

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: 64
Joined: Mon Feb 24, 2014 10:54 pm
Location: Geneva

Re: How to prevent the browser using the cache

by Arbrakaan Thu Mar 15, 2018 4:00 pm

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

Re: How to prevent the browser using the cache

by Stefan Thu Mar 15, 2018 6:20 pm

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

Re: How to prevent the browser using the cache

by plouf Fri Mar 16, 2018 5:08 am

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

Re: How to prevent the browser using the cache

by Stefan Sat Mar 17, 2018 7:54 am

How can I do that?
plouf
 
Posts: 35
Joined: Tue Feb 25, 2014 6:01 pm

Re: How to prevent the browser using the cache

by plouf Sat Mar 17, 2018 3:45 pm

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)
Stefan
 
Posts: 31
Joined: Mon Feb 05, 2018 9:44 pm

Re: How to prevent the browser using the cache

by Stefan Thu May 24, 2018 6:42 am

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

Re: How to prevent the browser using the cache

by tj1010 Tue May 29, 2018 8:42 am

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)
Return to Coding Questions

Who is online

Users browsing this forum: No registered users and 2 guests