PHP Webpage Expiry and the Cache Primer Tutorial
โœ‚๐Ÿƒ๐Ÿพโ€โ™€๏ธ๐Ÿƒ๐Ÿผโ€โ™‚๏ธ
๐Ÿ“–

PHP Webpage Expiry and the Cache Primer Tutorial

PHP Webpage Expiry and the Cache Primer Tutorial

We wanted to talk about the serverside (ie. PHP, for us) topic of Webpage Expiry, for web applications. You will probably know, if you surf the net, go to a webpage, do some other work, and go back to that original webpage in the same way, you may get identical content even though you know for a fact that that content, should be different and updated. That can be either a weakness at that websiteโ€™s web server code, or be an approach to speeding up response times for the user by using the web browserโ€™s cache to save on revisiting web servers constantly, to get content.

The topic of โ€œWebpage Expiryโ€ involves the setting at the web server (for us at www.rjmprogramming.com.au, using PHP) of the webpageโ€™s expiry date/time, via the manipulation of the HTTP Expires header. While the Webpage is โ€œcurrentโ€ the cache will be called into play, but as soon as the Webpage HTTP Expires header is โ€œclicked overโ€ timewise, a โ€œrereading of content from the web serverโ€ (or โ€œrefreshing the cacheโ€) is triggered. With todayโ€™s proof of concept self_destructโšซphpโ€˜s liveโœ‚run weโ€™d like to thank โ€ฆ

  • The PHP Anthology (Volume II: Applications) by Harry Fuecks

    (ISBN: 0-9579218-4-5) for the inspiration and useful code help here

  • gfycat for background animated GIF โ€ฆ thanks โ€ฆ and โ€ฆ
  • colour matching of the background animated GIF via Mac OS Xโ€™s โ€œDigital Color Meterโ€ which we talked about at Digital Colour Meter on Mac Laptop Tutorial
  • idea of semi-transparent background with less transparent foreground idea we talked about at Rainbow Games Background Image Tutorial

You can also see this play out at WordPress 4.1.1โ€™s PHP Webpage Expiry and the Cache Primer Tutorial.

If this was interesting you may be interested in this too.

This entry was posted in eLearning, Tutorials and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *