According to RFC 2616, the correct value for the Expires: header is a Unix timestamp, whereas the value of Cache-Control: max-age is relative to now. Not sure if this distinction has any practical value, nevertheless it can be corrected :)
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | admin_menu-maxage-129838.patch | 696 bytes | smk-ka |
Comments
Comment #1
smk-ka commentedAttached patch fixes the max-age value.
Comment #2
sunThe addition of "private" looks suspicious to me - any particular reason for that?
That said, the entire cache output code is still based on D6 core, whereas D7 vastly improved it (including the gzip and whatnot mangling). Was actually playing with the idea of entirely removing the custom code and (ab)using drupal_serve_page_from_cache() with a stub/mock $cache object instead, but didn't have time to look into that yet. What do you think?
Comment #4
sunThanks for reporting, reviewing, and testing! Committed to all branches.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.