Thank you Gerald, That seems really useful advice. As I look more and more into caching I'm finding a real Pandora's box. There seems to be no universal solution, so, its bottom up, try and test from here on.
> Greetings al, and Peter Small. > > I have ran into many different issues when dealing with web design and > browser cache when testing a quick fix with css, an image, or anything > that the browser (or the hosting server) has stored. > > I use https://chrispederick.com/work/web-developer/ > <https://chrispederick.com/work/web-developer/> in all browsers: chrome, > Firefox, brave, opera, and edge. > > I use Webdevloper extension to clear cache much easier than going into the > browser prefs. > > When some of my development is using a main.css that includes all the > other css files and main.css?ver=3 going to ver=4 does not work, I > sometimes have to close the current tab I am in and open the site in a new > one. > > Web developer also allows you to remove session cookies, which does help. > > The other issue I ran into that changing version (?ver=) does not help at > all. The reason is that the server (siteground - not mine but some places > I do web work for use) they have a built in cache for all pages and sites > which frustrates me to wanting to do terrible things. > > I understand it makes the site go faster (in theory) but I cannot see any > changes made to see if they work live and not just local. You should > always verify the live site is what the local site is. anyway. I have to > go into Wordpress and use their plugin to clear site wide cache. > > Siteground gave me some code to add to htaccess but it does not work. > > So you may want to find out if your host has a built in automatic cache on > your site before pulling your hair out. > > - gerald > >> On Jun 19, 2021, at 04:43, Peter Small <[email protected]> >> wrote: >> >> What I ended up doing was to download all the files on my website >> (www.dinnerpartytown.uk) then with BBEdit's multiple file search I made >> the following replacements: >> ".html" replaced with ".html?v=1.0" >> ".js" replaced with ".js?v=1.0" >> ".css" replaced with ".css?v=1.0" >> ".jpg" replaced with ".jpg?v=1.0" >> I then uploaded all the files to the server and everything seems to work >> fine. >> I'm hoping this will allow me to make changes that will not be ignored >> through visitor browser caching. >> >> On Friday, June 18, 2021 at 1:08:47 PM UTC+1 Greg Raven wrote: >> This sounds like a good reason not to use Chrome, but in your shoes I >> think I would select those files in the Finder and right-click to bring >> up the Rename function. I'll bet this could even be automated. >> >> On Thursday, June 17, 2021 at 7:33:28 AM UTC-7 Peter Small wrote: >> Chrome keeps caching my files so that when I make a change to any online >> document Chrome displays the cached version and not the modified version >> that is on the server. >> >> To get over this problem I want to append a version number in a query >> line to every document i.e., by adding "?v=1.0" to the end of all the >> documents (URLS, CSS and JS docs). I want to be able to do this first in >> a folder on the desktop. >> >> Can this be done as a batch with BBEdit? Or perhaps there is an >> Applescript or Keyboard Maestro macro out there somewhere? >> >> Grateful for any suggestions. >> >> -- >> This is the BBEdit Talk public discussion group. If you have a feature >> request or need technical support, please email "[email protected]" >> rather than posting here. Follow @bbedit on Twitter: >> <https://twitter.com/bbedit <https://twitter.com/bbedit>> >> --- >> You received this message because you are subscribed to the Google >> Groups "BBEdit Talk" group. >> To unsubscribe from this group and stop receiving emails from it, send >> an email to [email protected] >> <mailto:[email protected]>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/bbedit/b34408c7-7344-400c-8c3e-35d7c30c47e4n%40googlegroups.com >> <https://groups.google.com/d/msgid/bbedit/b34408c7-7344-400c-8c3e-35d7c30c47e4n%40googlegroups.com?utm_medium=email&utm_source=footer>. > > > -- > > <https://thatsbyers.com?utm_source=GmailFooter&utm_medium=ThatsByers&utm_campaign=EmailSignature> > > > 11773 Slow Poke Lane, Grass Valley, California 95945 > Byers is committed > to protecting your health and safety with a Virtual Consultation. > <https://thatsbyers.com/virtual-consultation> > > Reviews on Google > <https://www.google.com/search?hl=en-US&gl=us&q=Byers,+11773+Slow+Poke+Ln,+Grass+Valley,+CA+95945&ludocid=11748852054921487165&lsig=AB86z5XcBI1O6r_L8QktB46n23GB#lrd=0x809b705409fd6757:0xa30c4eb22436a33d,3> > * Give Us Feedback > <https://thatsbyers.com/about/reviews?utm_source=GmailFooter&utm_medium=signaReviewsture&utm_campaign=EmailSignature> > > We are here to help you Stay Safe! > <https://thatsbyers.com/lpmicro/stay-safe/?utm_source=EmailFooter> > > -- > This is the BBEdit Talk public discussion group. If you have a feature > request or need technical support, please email "[email protected]" > rather than posting here. Follow @bbedit on Twitter: > <https://twitter.com/bbedit> > --- > You received this message because you are subscribed to a topic in the > Google Groups "BBEdit Talk" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/bbedit/NeTy-8EAAUM/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/bbedit/19C7D2F6-C21D-4DC2-B100-2AE485C3E069%40thatsbyers.com. > -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "[email protected]" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/8859989bac3f7a5eef5fa9ed67d6ca2f.squirrel%40email.powweb.com.
