vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Static html (https://vborg.vbsupport.ru/showthread.php?t=103729)

Dan 12-25-2005 11:18 AM

Static html
 
I've got some static html pages that are updated via a perl script, thing is most browsers refuse to check for new copies unless you refresh the page. I've tested this on all major browsers (except safari[I've tested ie5 ie6 opera firefox and konqueor])

So is there anything I can do to make it so the actual page is up to date when someone views it?

Marco van Herwaarden 12-25-2005 11:56 AM

<a href="http://www.w3.org/TR/html4/struct/global.html#adef-http-equiv" target="_blank">http://www.w3.org/TR/html4/struct/gl...def-http-equiv</a>

Have a look at the Expires example.

Dan 12-25-2005 12:23 PM

Quote:

Originally Posted by MarcoH64
http://www.w3.org/TR/html4/struct/gl...def-http-equiv

Have a look at the Expires example.

Interesting, thing is with that is I'd have to set the expires date which is hard to do with a static html page that is generated with a perl script as it's not updated at any standard intervals.

Marco van Herwaarden 12-25-2005 04:48 PM

I guess the perl script can also generate the header, and it should be aware of what time it is when it is running.

Dan 12-25-2005 04:56 PM

So tell it to put in the current time or what?

Marco van Herwaarden 12-25-2005 05:00 PM

The header line can already be put in the generated file i guess.

Dan 12-25-2005 05:46 PM

Well that was easy ;) After poking Zachery he said that the forumhome in vB uses a nocache in the meta tags.

So I copied it and it works perfect :D

HTML Code:

<meta http-equiv=&quot;Pragma&quot; content=&quot;no-cache&quot; />
      <meta http-equiv=&quot;Expires&quot; content=&quot;-1&quot; />
      <meta http-equiv=&quot;Cache-Control&quot; content=&quot;no-cache&quot; />


filburt1 12-25-2005 06:31 PM

I hope those quote entities aren't in the script to begin with...they should be literal quotes.

Dan 12-25-2005 07:08 PM

nah i think that was my copy and paste job


All times are GMT. The time now is 11:45 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01011 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete