wp_get_nocache_headers [ WordPress Function ]
wp_get_nocache_headers ( No parameters )
| Uses: | |
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: nocache_headers, wp_get_http_headers, wp_cache_decr, wp_get_schedules, _get_non_cached_ids
Gets the header information to prevent caching.
The several different headers cover the different ways cache prevention is handled by different browsers
Source
<?php
function wp_get_nocache_headers() {
$headers = array(
'Expires' => 'Wed, 11 Jan 1984 05:00:00 GMT',
'Last-Modified' => gmdate( 'D, d M Y H:i:s' ) . ' GMT',
'Cache-Control' => 'no-cache, must-revalidate, max-age=0',
'Pragma' => 'no-cache',
);
if ( function_exists('apply_filters') ) {
$headers = (array) apply_filters('nocache_headers', $headers);
}
return $headers;
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- WordPress › Support » wp_get_nocache_headers() fix
After about a day of trying to find out how to get pages on my site to not be saved in cache (for users who press the back button after logging out), I discovered ...
wordpress.org - wp_get_nocache_headers (WordPress Function) - WPSeek.com
WordPress lookup for wp_get_nocache_headers, a WordPress Function. wpseek .com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - Docs for page functions.core.php
since: 2.0.0; uses: wp_get_nocache_headers(). void nocache_headers (). remove_query_arg (line 292). Removes an item or list from the query string.
phpdoc.ftwr.co.uk - wp_get_nocache_headers:WordPress私的マニュアル
2010年5月13日 ... wp_get_nocache_headers - キャッシュを無効にするHTTPヘッダー情報を取得する.
elearn.jp