Thread: Update problems
Results 1 to 15 of 16
Related
-
Update syntax Forum: PHP Forum
Replies: 2 -
Google Update? Forum: Search Engine Optimization - SEO - Forum
Replies: 4 -
update Forum: General Discussion
Replies: 0 -
Google Update. Forum: Search Engine Optimization - SEO - Forum
Replies: 5
-
05-25-2003, 05:02 AM #1
Update problems
This may seem like a stupid questions, but I cant figure out what I am doing wrong, or how to fix it.
I have been running a site for a few weeks now, and have been updating it regularly. My problem is that people don't seem to be loading the updated version if they have already visited the old version.
I would assume this is because computers are storing files in their cache files and just loading them back up again without checking for a newer version. They will get the new version if they "refresh" the page, but thats just plain annoying.
I use frames and standard HTML (dreamweaver MX). You can check out the code for yourself at http://www.guildsofganareth.com if it helps.
Is there any work around for this, or how can I fix it.
Thanks much for your help
Twill
-
05-25-2003, 05:47 AM #2Code:
<meta http-equiv="Refresh" content="1; url=http://www.mysite.com/mypage.html">
-
05-25-2003, 05:52 AM #3
Wouldn't that just keep refreshing tho? over and over?
try adding thi code in the <head> of your document -
Code:<meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="no-cache"> <meta http-equiv="Expires" content="-1"> <meta http-equiv="Cache-Control" content="no-cache">
If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
05-25-2003, 05:56 AM #4Originally posted by QuietDean
Wouldn't that just keep refreshing tho? over and over?
Hey, it's 6:30AM here on a Sunday, and I never said I was a javascript whiz.
-
05-25-2003, 06:07 AM #5
6:30 AM? I presume you been up all night? tut tut
If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
05-25-2003, 06:08 AM #6
Thank you both for your help,
QuietDean, if I'm using frames, where on the site would I put that? In the frameset (index.htm)? on every page?
And what exactly am I doing with that code? does it just stop them from caching the page?
-
05-25-2003, 06:37 AM #7
Yes, put the code in every page you do not wish to cache. I would not bother with the frameset page, just the actual content pages.
And yes, the code (in theory) stops the browser from caching the content, so it should load fresh every time.If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
05-25-2003, 06:57 AM #8
great, one more silly question then...is there an easy way (in dreamwaver mx or another program) to put that on all my pages, or do i just go through and do it by hand? (why work hard when you can work smart)
-
05-25-2003, 08:30 AM #9
Sorry, I never have used dreamweaver, so I do not know.
Any good text editor is capable of doing Replace functions for many files ( www.textpad.com is an example, is what I use)If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
05-25-2003, 09:41 AM #10is there an easy way (in dreamwaver mx or another program) to put that on all my pages, or do i just go through and do it by hand? (why work hard when you can work smart)
...let me look at your code...
OUCH!
I have always had the attitude that laziness breeds a smart worker, this shows it is not always the case. If you have not hand coded a website you may or may not know how bad the code is that dreamweaver has produced for you, trust me never use a program without going back and fixing the numerous problems.
smart folks do it by hand
-
05-25-2003, 09:53 AM #11
I know I know.
I used to code by hand, but I dont have time right now I am afraid, and as ugly as the code may be, I fortunately am not in a position where extra code hurts too much.
If I have the time, I am sure I will go back and do some spring cleaning...but for now, laziness is working for me
Thanks again everyone for your help.
Great site BTW dave
-
05-25-2003, 11:12 PM #12
yah, no program is ever going to replace a programmer
-
05-26-2003, 04:36 AM #13
BTW, thanks guys, It worked wonders.
I'll be sending a few people over this way
-
05-26-2003, 08:59 AM #14
By the way, is it possible to cache images but not text? or perhaps have the cache expire an hour after the visit so that turing the visit they dont have to reload graphics every time?
-
05-26-2003, 09:40 AM #15
It might be a good idea to create another page or pop-up window detailing how users can set their browser options to 'refresh' each site as though it were being visited for the first time every time - something that will slow down browsing for everyone without a cable connection or faster.
For a site that's updated frequently, it might be best to create a small graphic instructing visitors to hold down their Ctrl (IE) or Shift (NS) buttons while clicking the Refresh icon/button to see the latest version of the page - and then place that image at the top bottom middle and elsewhere on the page.
Other than that, anyone updating sites frequently just has to suffer until visitors become acquainted with their options.
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum