Closed Every page XenForo renders gets “Last-Modified: now”

dethfire

Well-known member
Licensed customer
Affected version
2.3.13
The main downside is that the header is meaningless, so crawlers can’t use it to skip unchanged pages.
src/XF/Mvc/Dispatcher.php line 432
PHP:
$renderer->getResponse()->header('Last-Modified', gmdate('D, d M Y H:i:s', \XF::$time) . ' GMT');
 
Automated triage: Closed

Thank you for reporting this issue. Every page is generated fresh on each request. The header gives the time of that generation and is sent with headers telling caches to revalidate every time. Pages don't support conditional requests, so letting crawlers skip unchanged pages would be a new feature rather than a bug fix. It would be best raised as a suggestion.

This is an automated assessment. A member of staff may review and update it.
 
Back
Top Bottom