Constantly refreshing browser to see new uploads Constantly refreshing browser to see new uploads
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Constantly refreshing browser to see new uploads

Started by skyone, July 01, 2013, 09:57:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

skyone

Hi,

every time when I upload a pic and then I click the home page , the gallery doesn't change , I need to refresh my browser every time in order to see the changes... it happens the same if I change the main banner or css

Visitors experience the same, they don't see changes unless they refresh their browser

Is there a way that changes can be reflected right away?
I suspect this is something to do with cookies..

thanks

my gallery

phill104

Nothing to do with cookies, more to do with the way your browser works. By default most browsers are setup to cache a page it has recently viewed until it is refreshed manually. You can adjust this setting in the browser or add a meta tag to your template.

http://webdesign.about.com/od/caching/qt/control-the-browser-cache-with-expires-meta-tag.htm
It is a mistake to think you can solve any major problems just with potatoes.

skyone

I added the new meta tag and still the same. Now I have:
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="expires" content="0">

it has to be something else, I have another gallery on a free server for testing purposes and this doesn't happen, as soon as I upload a pic, I can see it without refreshing the browser
I thought it might be some expires cache I have on my .htaccess, but I deleted them and it makes no difference.
I deleted the cookies on my browsers and is still caching the old page... I have to F5 every time to see new photos uploaded ... the same happens to my visitors :-\

skyone

I asked my web host and they said that unless the photos have a special ajax uploader it is normal
to have to refresh the page to see the newly uploaded photo.

does coppermine uses a special ajax uploader???

ΑndrĂ©

Either your host misunderstood the issue or you described it totally confusing. As Phill already said, it has nothing to do with cookies, but it's a caching issue (either your browser or your hosts displays/delivers a cached version of your gallery).

To exclude a browser issue, please post a test user account with upload privileges (no admin account!), so we can test ourselves.