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 comment