FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
 Most recent items not appearing View next topic
View previous topic
Post new topicReply to topic
Author Message
Comichron



Joined: 13 Jan 2017
Posts: 8

PostPosted: Fri Jul 14, 2017 1:23 pm Reply with quoteBack to top

I am finding that if the user has already visited the page where my RSS2HTML feed is being presented -- and thus has the page cached -- the page does not automatically load whatever the newest version of the feed is. The user must refresh the browser window to force the most recent items to load.

Short of making some manual change to the page's CSS file name, forcing a page reload whenever a new blog post is added to the feed, is there any way in RSS2HTML to force the page to grab the latest feed items?
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2783

PostPosted: Fri Jul 14, 2017 2:06 pm Reply with quoteBack to top

Most proxies and clients can be forced to disable caching with this bit of code:
<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
?>

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
Comichron



Joined: 13 Jan 2017
Posts: 8

PostPosted: Fri Jul 14, 2017 5:09 pm Reply with quoteBack to top

Thank you, that worked perfectly!
View user's profile
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic


Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme