nocache_headers

Definition:
function nocache_headers() {}

Sets the headers to prevent caching for the different browsers.
Different browsers support different nocache headers, so several headers must be sent so that all of them get the point that no caching should occur.

Source code

function nocache_headers() {

	$headers = wp_get_nocache_headers();

	foreach( $headers as $name => $field_value )

		@header("{$name}: {$field_value}");

2455

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: