Forum Moderators: open

Message Too Old, No Replies

Javascript not updating content.

         

Gemini23

9:06 pm on Oct 31, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have posted this elsewhere as I thought it to be a caching problem (which it could be) but now wonder if it needs to be addressed via Javascript.

I have a script that pulls a dropdown list and search box from our ticket supplier.... (in left-hand side-bar) within the past week (the problem may have been there before then but not noticed) there is now a problem with the content updating - depending on the browser I (or other users) use - and I think maybe depending on when I first or last visited th website or web page - the dates are showing several days old... and have stopped updating.... the ONLY way I can fix the problem is to clear the browser cache - but clearly I cannot expect website visitors to do that...

This has been working fine for a couple of years or more.. so not sure what has made it stop working.... maybe a plugin that changed the htacces file?

Any help?

keyplyr

3:43 am on Nov 1, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



JS is essentally a text file and gets cached in the browser. There's not much you can do about all the browser settings of your stie visitors. ISPs also use caching.

You can set your site's caching to a low time frame but it won't help much beyond telling the caching checker tools what it is.

Different browsers react a bit differently with caching (even though they aren't supposed to.) This may account for the discrepancy. Also, one or more of your browsers may have updated recently showing different caching than before.