Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: nocache_headers

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1495           /**
1496            * Filters the cache-controlling headers.
1497            *
1498            * @since 2.8.0
1499            *
1500            * @see wp_get_nocache_headers()
1501            *
1502            * @param array $headers Header names and field values.
1503            */
1504           $headers = (array) apply_filters( 'nocache_headers', $headers );
1505      }
1506      $headers['Last-Modified'] = false;
1507      return $headers;
1508 }
1509
1510 /**
1511  * Sets the headers to prevent caching for the different browsers.
1512  *
1513  * Different browsers support different nocache headers, so several