Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




nocache_headers [ WordPress Function ]

nocache_headers ( No parameters )
Uses:
Defined at:



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


<?php
function nocache_headers() {
    
$headers wp_get_nocache_headers();
    foreach( 
$headers as $name => $field_value )
        @
header("{$name}{$field_value}");
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics