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 ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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