GordonLesti / Lesti_Fpc

Simple Magento Fullpagecache
https://gordonlesti.com/lesti-fpc-documentationversion-1-4-5/
Other
358 stars 158 forks source link

Rename Age header #158

Closed it-can closed 8 years ago

it-can commented 9 years ago

Please rename the age header in file app/code/community/Lesti/Fpc/Model/Observer.php

Line 75: ->setHeader('Age', time() - $time); to ->setHeader('X-FPC-Age', time() - $time);

Line 87: Mage::app()->getResponse()->setHeader('Age', 0); to Mage::app()->getResponse()->setHeader('X-FPC-Age', 0);

Or make it configurable... Thanks!

GordonLesti commented 9 years ago

In general I see no problem with Age, I guess it respects the W3C Header Field Definitions. Is there a valid reason to change this? You can also disable the Age, it's just to test after installation if the cache really works.