huguesalary / Magento-Varnish

This Magento extension provides a Real Full Page Caching for Magento powered by Varnish with support of Session-Based information caching (Cart, Customer Accounts, ...) via ESI includes
Other
95 stars 18 forks source link

Refactor code and use HTTP caching headers from HTTP Specs. #13

Open huguesalary opened 11 years ago

huguesalary commented 11 years ago

Instead of using, for example, a URL path like ".../expiry/3d/..." to determine if an ESI fragment, or a page should be saved in cache, and for how long, use the HTTP headers:

Cache-Control If-Modified-Since Etags Last-Modified