Changeset 59724 for trunk/src/wp-includes/functions.php
- Timestamp:
- 01/28/2025 11:20:48 PM (13 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r59712 r59724 1490 1490 * 1491 1491 * The several different headers cover the different ways cache prevention 1492 * is handled by different browsers .1492 * is handled by different browsers or intermediate caches such as proxy servers. 1493 1493 * 1494 1494 * @since 2.8.0 1495 1495 * @since 6.3.0 The `Cache-Control` header for logged in users now includes the 1496 1496 * `no-store` and `private` directives. 1497 * @since 6.8.0 The `Cache-Control` header now includes the `no-store` and `private` 1498 * directives regardless of whether a user is logged in. 1497 1499 * 1498 1500 * @return array The associative array of header names and field values. 1499 1501 */ 1500 1502 function wp_get_nocache_headers() { 1501 $cache_control = ( function_exists( 'is_user_logged_in' ) && is_user_logged_in() ) 1502 ? 'no-cache, must-revalidate, max-age=0, no-store, private' 1503 : 'no-cache, must-revalidate, max-age=0'; 1503 $cache_control = 'no-cache, must-revalidate, max-age=0, no-store, private'; 1504 1504 1505 1505 $headers = array(
Note: See TracChangeset
for help on using the changeset viewer.