Jump to content

Recommended Posts

Posted

I update my php page on my account, but when I load the page it is the old version of the page. If I go to a friend's computer where they have never visited the page it is still cached. How do I prevent this?

Posted (edited)

Why not just hit refresh? Or control+refresh if that doesn't work?

 

You can also go into your browser settings and allocate 0kb to cache.

 

As for your friend's puter, I don't know....I have that happen with various sites as well such as news sites. You don't have any redirects set up, do you?

Edited by bellringr
Posted

Welcome to the forums awstewar :)

 

Are you sure you have the right php file name? And be sure there is not an .html or .htm version of the file in the folder you are uploading too.

Posted
Welcome to the forums awstewar  :)

 

Are you sure you have the right php file name?  And be sure there is not an .html or .htm version of the file in the folder you are uploading too.

 

I am sure I have the right filename and there are no html or htm duplicates.

Posted

Welcome to the forums! I would first make sure that any possible caching locations (browser, ISP, etc.) is NOT caching anything. That will help you decide which direction to go. But start with the easiest first...your browser.

Posted
Welcome to the forums!  I would first make sure that any possible caching locations (browser, ISP, etc.) is NOT caching anything.  That will help you decide which direction to go.  But start with the easiest first...your browser.

 

It cannot be my browser because I tried loading the page on a friend's computer and they had never visited the site before.

Posted

Do you share the same ISP? Many ISP's use a caching server and you might need to wait for the server to update. On another note, it can be the browser. If you have visited the site before, your computer may be storing a cached version of the page. The reason they get the new page is exactly because they have never been there before and their computer has no reference to look at so it must pull a fresh copy.

 

I am not saying that it is your browser for sure, but it is always a possibility. I would say it is either a browser issue or your ISP is caching the page.

 

Clear your browsers cache or press Crtl+F5 while visiting your site and see if that clears things up. If not then I might suspect your ISP is doing the caching.

Posted

See what happens when I "read" the post? If you go to your file manager and view the file, is the code still the old code? Did you just try and overwrite the old file or did you delete and upload?

Posted
See what happens when I "read" the post?  If you go to your file manager and view the file, is the code still the old code?  Did you just try and overwrite the old file or did you delete and upload?

 

I did an overwrite on the file. The old code is not still there.

Posted

Can you post a screen capture of what you are seeing (provided it doesn't break the forum rules) and what it should look like along with an address to the page so we can tell you what we see?

Posted

I would try to delete the file and then post your new one. I've encountered this issue before, and this is the only way i've gotten around it.

 

-Sam

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...