Broadcast Radio Forums

OCP is updating the the files but my website isn't changing


http://forums.broadcastradio.com/Topic254.aspx

By Liam Burke - Wednesday, February 4, 2004 4:22:35 PM

OCP is updating the the files but my website isn't changing

Here we hit a few problems with web sites themselves. Basically, your web site needs to 'refresh' periodically for the new information to be displayed. This is complicated further by the fact the we must stop the web site from being 'cached' locally otherwise the updates will never be seen by the person viewing your web site. Fortunately, there are a couple of simple 'meta tags' that can be added to your site to get around these problems. 

There are two methods of adding these tags to your web pages:

Automatically Adding Them

When you set up the pages to be updates by OCP you get the option to automatically add the tags to the pages that OCP updates. Tick this box and the tags will be added.


Manually Adding Them

Add the following tags to the header section of the HTML page (remeber to add it to the template not the finished page otherwise OCP will over-write it).

<meta http-equiv=\"pragma\" content=\"no-cache\">
<meta http-equiv=\"refresh\" content=\"20\">

The first tag tells the browser not to cache the page and the second tells it to refresh the page every 20 seconds.

If you are using Windows Media(tm) as your streaming medium, the OCP documentation outlines a far more elegant way of 'poking' a refresh command at the browser through the actual stream which stops your website from automatically refreshing every few seconds


Search key words: refresh, web, page, site, meta, automatic.