Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Useful HTML Code!

Options
  • 26-07-2001 5:34pm
    #1
    Closed Accounts Posts: 59 ✭✭


    I just recently came across this handy piece of code, some beginner web developers might be interested in:

    <meta HTTP-EQUIV="expires" CONTENT="now">
    <meta HTTP-EQUIV="pragma" CONTENT="no-cache">

    Put it between the <head> and </head> tags. It shows your visitors the most updated version of your web site, instead of loading "old" news etc. from their cache.




    Regards,

    Peter Denham
    http://www.acidwebsolutions.com/
    post@acidwebsolutions.com


Comments

  • Banned (with Prison Access) Posts: 16,659 ✭✭✭✭dahamsta


    Most clients will compare the last updated time of webpages to the page in the cache anyway, and serve the most recent. The "pragma" and "expires" META tags are only useful if you're serving dynamic content, particularly if the served content uses an internal URL rewriting engine. (Content served via POST isn't cached, although content served via GET is unpredictable.)

    adam (the anal retentive)


Advertisement