Advanced search  

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

Pages: [1]   Go Down

Author Topic: Constantly refreshing browser to see new uploads  (Read 3061 times)

0 Members and 1 Guest are viewing this topic.

skyone

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Female
  • Posts: 75
Constantly refreshing browser to see new uploads
« on: July 01, 2013, 09:57:55 pm »

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
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4886
    • Windsurf.me
Re: Constantly refreshing browser to see new uploads
« Reply #1 on: July 02, 2013, 08:50:54 am »

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
Logged
It is a mistake to think you can solve any major problems just with potatoes.

skyone

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Female
  • Posts: 75
Re: Constantly refreshing browser to see new uploads
« Reply #2 on: July 02, 2013, 10:43:48 am »

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 :-\
Logged

skyone

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Female
  • Posts: 75
Re: Constantly refreshing browser to see new uploads
« Reply #3 on: July 02, 2013, 10:50:36 am »

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???
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Constantly refreshing browser to see new uploads
« Reply #4 on: August 28, 2013, 11:16:35 am »

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.