There's two useful caching check tools here:
Cacheability Query
http://redbot.org/
PS Change image path sorted IE but did not sort Chrome, however, either the query string thing or html to php/htm works for page links so ta for those brill suggestions also!
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Reply to: Browser caching
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "Browser caching"
Collapse
-
Cheers. After checking and finding same problem on another PC I renamed the image directory and changed all refs in Inforapide but seen summit like you recommend so that might be another good way next time.
Leave a comment:
-
Presumably you want the browser to cache images that haven't changed, but to refresh when they have.
Assuming you've got some code behind your website, you could try having a setting somewhere with a value that you change when you do a release, that appends to your image paths as a querystring - e.g
<img src="./images/mypic.jpg?20120703" />
The change of qs should trigger the cache to refresh.
Disclaimer - IANNF.
Leave a comment:
-
Cheers! Yes but as said that was IE doing that, it was the old version of the whole page in Chrome. Lot of people have this problem in Chrome apparently. Also, just browsing through several sites at random on Google, did not find a single occurence of <META HTTP-EQUIV in any headers. This is what is really puzzling about the whole thing.
PS You should buy a really cheap old Chinese made CCTV. Once you figure out what the instructions should be, they work great!Last edited by xoggoth; 3 July 2012, 22:23.
Leave a comment:
-
You said the widths on the page presented were correct, but that the images were wrong. So that must mean you had the caching directives that others have mentioned set correctly on the previous version of your site. It's only the browser-specific caching of images that appears to be proving a problem. (NB: if you hadn't set HTML caching directives correctly previously, it'd be a Tardis you'd need to fix the problem at this juncture, and not a redesign, since the previous version of your site would remain cached on your consumers' browsers no matter what you did now). Fortunately your previous version can't have had markup that would cause your recent HTML changes to be ignored by the sound of it, it's only ignoring updates to images for some reason, and so just renaming the folder referenced should work.Originally posted by xoggoth View PostCheers. Beginning to think that renaming on every update is the only real solution but is changing the image path on its own any good if they are still viewing the old HTML with the old image path? Surely have to change all names and paths? And how change index.html? index.htm or index.php should work but is good for only two updates.
This caching stuff (unless it actually worked properly) is insane.Last edited by Gentile; 3 July 2012, 20:31.
Leave a comment:
-
Cheers. Beginning to think that renaming on every update is the only real solution but is changing the image path on its own any good if they are still viewing the old HTML with the old image path? Surely have to change all names and paths? And how change index.html? index.htm or index.php should work but is good for only two updates.
This caching stuff (unless it actually worked properly) is insane.Last edited by xoggoth; 3 July 2012, 20:11.
Leave a comment:
-
Sorry to state the obvious, but the easiest way of getting around this problem is to simply update the file paths of the images you're having trouble presenting new versions of. The simplest way to achieve that is to place all images in a folder that reflects the date and time of updating the website, e.g. "images_20120703_2024". Then, it's a simple matter of using find and replace to update every reference to the old versions in your newly-published project. This means that your consumers will still be able to benefit from caching, but in a way that allows you to later update your content at any time you want, without you having to play Mystic Meg at the time of publication by trying to predict when you might next want to update the site. And, as you observed, some browsers don't respect expiry date HTTP headers anyway, making that solution unviable for a public-facing website that needs to cater to a range of browsers and browser versions.Originally posted by xoggoth View PostIt's all very wierd, I uploaded a widened webpage this morning and IE9 opened it at correct width but with all the old images! Had to refresh to make it look right. Chrome just loaded the old page. Apart from renaming everything on every update, (not a solution for the index page anyway) how do you stop browsers caching so that users see new content REALLY? What are our customers actually seeing?
I've got all the pragma no cache stuff in the header but, as some things on the net say, those don't always work. Looked at htaccess and some links say you shouldn't use that either as it slows the site down, so at bit of a loss.
Never recall this problem before a year or two ago, you just updated a page and there it was. Any brill ideas in language for webby dimwits or comprehensible links appreciated.Last edited by Gentile; 3 July 2012, 19:34.
Leave a comment:
-
Not all browsers honour them, those that don't will be looking at the HTTP headers, so you really need to set the HTTP Cache-Control header.Originally posted by xoggoth View PostThanks but yes, I've got exactly that in all my headers. No idea why it seems to do nowt.
Leave a comment:
-
Thanks but yes, I've got exactly that in all my headers. No idea why it seems to do nowt.
Leave a comment:
-
Can you not set a page to expire?Originally posted by xoggoth View PostIt's all very wierd, I uploaded a widened webpage this morning and IE9 opened it at correct width but with all the old images! Had to refresh to make it look right. Chrome just loaded the old page. Apart from renaming everything on every update, (not a solution for the index page anyway) how do you stop browsers caching so that users see new content REALLY? What are our customers actually seeing?
I've got all the pragma no cache stuff in the header but, as some things on the net say, those don't always work. Looked at htaccess and some links say you shouldn't use that either as it slows the site down, so at bit of a loss.
Never recall this problem before a year or two ago, you just updated a page and there it was. Any brill ideas in language for webby dimwits or comprehensible links appreciated.
Code:<HEAD> <TITLE>---</TITLE> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Expires" CONTENT="-1"> </HEAD>
Leave a comment:
-
Browser caching
It's all very wierd, I uploaded a widened webpage this morning and IE9 opened it at correct width but with all the old images! Had to refresh to make it look right. Chrome just loaded the old page. Apart from renaming everything on every update, (not a solution for the index page anyway) how do you stop browsers caching so that users see new content REALLY? What are our customers actually seeing?
I've got all the pragma no cache stuff in the header but, as some things on the net say, those don't always work. Looked at htaccess and some links say you shouldn't use that either as it slows the site down, so at bit of a loss.
Never recall this problem before a year or two ago, you just updated a page and there it was. Any brill ideas in language for webby dimwits or comprehensible links appreciated.Tags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers

Leave a comment: