Welcome to WebmasterWorld Guest from 54.224.41.46

Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

How to refresh url with new content?

     
7:10 pm on Jun 21, 2016 (gmt 0)

Preferred Member

5+ Year Member Top Contributors Of The Month

joined:Aug 30, 2007
posts: 621
votes: 3


I have posted this elsewhere but not yet found a solution.
I have a wordpress based website where the content on the homepage changes usually several times a day (niche related news items). BUT... unless either myself or anyone else that revisits the webpage does a manual fresh - we don't see the updated content.

Anyone any suggestions - plugins or otherwise - that would enable a refresh either by visit or by content being modified. This is run on a genesis theme

I have another site that has the standard Wordpress theme and this seems to update automatically.
7:18 pm on June 21, 2016 (gmt 0)

Moderator This Forum from US 

WebmasterWorld Administrator travelin_cat is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Feb 28, 2004
posts: 3223
votes: 12


Are you sure that the site isn't being updated? Have you looked at it outside of your network? Any cache plugins?
7:22 pm on June 21, 2016 (gmt 0)

Preferred Member

5+ Year Member Top Contributors Of The Month

joined:Aug 30, 2007
posts: 621
votes: 3


I do have a cache plugin but I also have another website that when I create a new post for example the page gets updated immediately.
7:31 pm on June 21, 2016 (gmt 0)

Moderator This Forum from US 

WebmasterWorld Administrator travelin_cat is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Feb 28, 2004
posts: 3223
votes: 12


Turn off the plugin and see what happens. There may be a conflict with one WP install that does not exist on the other.
8:03 pm on June 21, 2016 (gmt 0)

Preferred Member

5+ Year Member Top Contributors Of The Month

joined:Aug 30, 2007
posts: 621
votes: 3


I have turned off the plugin and it makes no difference...
8:05 pm on June 21, 2016 (gmt 0)

Moderator This Forum from US 

WebmasterWorld Administrator travelin_cat is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Feb 28, 2004
posts: 3223
votes: 12


Have you flushed the cache on your browser?
8:29 pm on June 21, 2016 (gmt 0)

Preferred Member

5+ Year Member Top Contributors Of The Month

joined:Aug 30, 2007
posts: 621
votes: 3


yes cache flushed...
1:17 am on June 22, 2016 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:13841
votes: 485


unless either myself or anyone else that revisits the webpage does a manual fresh - we don't see the updated content

yes cache flushed...

When you visit the site immediately after emptying your browser cache, do you see the new version or the old version?

If you're seeing the old version, you've got problems.

If you're seeing the new version only if you either empty the cache or refresh manually, you may need to set an expiration header (so that people--that is, browsers belonging to humans--who visit the site have to put in a new request each time, instead of the browser confidently pulling up a cached version). Well, heck, there's probably a plugin for that too. But you should be able to do it yourself.
10:25 am on June 22, 2016 (gmt 0)

Preferred Member

5+ Year Member Top Contributors Of The Month

joined:Aug 30, 2007
posts: 621
votes: 3


I only see the new version if I do a manual refresh.... and this is only really a problem on the homepage...

Re If you're seeing the new version only if you either empty the cache or refresh manually, you may need to set an expiration header (so that people--that is, browsers belonging to humans--who visit the site have to put in a new request each time, instead of the browser confidently pulling up a cached version). Well, heck, there's probably a plugin for that too. But you should be able to do it yourself.

How do I do that?
11:23 am on June 22, 2016 (gmt 0)

Preferred Member

5+ Year Member Top Contributors Of The Month

joined:Aug 30, 2007
posts: 621
votes: 3


This is currently in .htaccess
## LEVERAGE BROWSER CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/x-javascript "access 1 month"
ExpiresByType application/javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
## LEVERAGE BROWSER CACHING ##
5:57 pm on June 22, 2016 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:13841
votes: 485


ExpiresDefault "access 2 days"

If your content changes more frequently than every two days-- I think you said every few hours-- then clearly you've got to set a shorter time.

:: detour to double-check ::

Yup, you can go right down to seconds. You can even use the keyword "access", meaning "don't cache the page at all", but that may be a little extreme. Maybe 1 hour?

<IfModule mod_expires.c>

To be sure it's working, remove the IfModule envelope. Not its content, just the envelope. If this results in a 500-class error, it means you don't have use of mod_expires and need to try something different. (This is a general truth about IfModule. You either have the mod or you don't, and should code accordingly.)
6:49 pm on June 22, 2016 (gmt 0)

Preferred Member

5+ Year Member Top Contributors Of The Month

joined:Aug 30, 2007
posts: 621
votes: 3


This doesn't seem to make any difference...

I notice that some .htaccess code has ExpiresDefault "access 1 hour" while others have ExpiresDefault "access plus 1 hour"

not sure what the difference is.. (I have tried both)
7:30 pm on June 22, 2016 (gmt 0)

Preferred Member

5+ Year Member Top Contributors Of The Month

joined:Aug 30, 2007
posts: 621
votes: 3


ps.. this seems to be a chrome browser problem as okay in Firefox and IE
7:36 pm on June 22, 2016 (gmt 0)

Preferred Member

5+ Year Member Top Contributors Of The Month

joined:Aug 30, 2007
posts: 621
votes: 3


the browser caching issue only seems to be on my website...
8:43 pm on June 22, 2016 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:13841
votes: 485


not sure what the difference is.

The word "plus" is optional according to the horse's mouth [httpd.apache.org]. Intuitively, though, it may be easier for the human user (that means you) to follow when you do include "plus".
6:01 pm on June 25, 2016 (gmt 0)

Junior Member

5+ Year Member

joined:Dec 23, 2008
posts:149
votes: 0


You can not only be having caching problems with browsers; you can be seeing the
effect of caching servers from the web host. To override server caching issues
try adding a (nonsense) (and, unique each time) query string to the URL.
E.g.:
http://example.com/problem.html?x=1
6:25 pm on June 25, 2016 (gmt 0)

Preferred Member

5+ Year Member Top Contributors Of The Month

joined:Aug 30, 2007
posts: 621
votes: 3


This now seems to have resolved itself.... so not entirely sure where or what the problem was...
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members