Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to update frequently...ASP?

Status
Not open for further replies.

missangie

Technical User
Nov 3, 2002
51
Hi, I need to be able to update my homepage with new news and images almost daily. I am worried that if I use html visitors browsers will not see the update unless they refresh. Is there an easy way around this? Is ASP the answer? Any advice would be greatly appreciated. Thanks!
Angie
 
If you change the content of the page, no matter what language it will require another hit on the server so a reload of the page.

Any server-side language will make it easier for you to update the content if you want to be able to do it online and in real time, but it won't actually make any difference to what you are asking.

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
one of the FAQs in this forum should help you out with plain HTML header tags..

faq253-577

Basically what you want to do is try and stop your page from being 'cached' (temporarily stored somewhere to save on having to get it from your site every time). Have a google around, you'll find more techniques to try and prevent your page from being cached.

Posting code? Wrap it with code tags: [ignore]
Code:
[/ignore][code]CodeHere
[ignore][/code][/ignore].
 
I personally wouldn't disable cache, simply because there is no reason to.

If the content is being updated daily, then why disable caching? You are putting extra load on your server for no reason.

If you want to set the cache headers, set it to expire a day in advance.

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
If you do end up using ASP its simple to do this.

Response.Expires=0

www.vzio.com
ASP WEB DEVELOPMENT



 
You could just use javascript to refresh the page every x seconds or minutes.

-DSergile
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top