[wp-trac] [WordPress Trac] #62898: header - 'Expires' => 'Wed, 11 Jan 1984 05:00:00 GMT',
WordPress Trac
noreply at wordpress.org
Mon Feb 3 13:08:09 UTC 2025
#62898: header - 'Expires' => 'Wed, 11 Jan 1984 05:00:00 GMT',
-----------------------------+-----------------------------
Reporter: wuxu | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.7.1
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
I'm using version 6.7.1 right now, and since I'm not a real developer, I'm
not sure if the following is a bug.
In line 1494 of wp-include/functions.php: function
wp_get_nocache_headers(), a header instruction is explicitly issued in the
function: 'expires' => 'wed, 11 jan 1984 05:00:00 GMT', which causes the
response header -expires=1984 for all pages on my frontend, but now it's
2025 years. However, my page expired in 1984.
I see that the function cache_javascript_headers() function on line 1552
does the right thing, it takes the time variable + a fixed value to ensure
that the expiration time is always a date in the future.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62898>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list