Skip to Content
PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide
book

PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide

by Larry Ullman
May 2003
Intermediate to advanced
592 pages
14h 28m
English
Peachpit Press
Content preview from PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide

Page Caching

Because HTML pages generated by PHP scripts are made on the fly, they frequently should not be cached by Web browsers and proxy servers (caching is a matter of referring to a saved version of a page rather than the original when a URL is requested). However, ISPs often cache popular sites to improve performance, and users sometimes adjust the caching policy of their browsers per their needs (Figure 10.3). As a PHP developer, you can use the header() function to explicitly control caching.

Figure 10.3. Caching settings can be altered in many browsers.

To prevent a page from being cached:

1.
Create a new PHP document (Script 10.3 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PHP and MySQL for Dynamic Web Sites: Visual Quickpro Guide, Second Edition

PHP and MySQL for Dynamic Web Sites: Visual Quickpro Guide, Second Edition

Larry Ullman

Publisher Resources

ISBN: 0321186486Purchase book