html - Browser cache- not understanding the cache related headers -


cache-control: public, max-age=31536000 age: 422816 expires: fri, 25 jul 2014 20:52:54 gmt date: thu, 25 jul 2013 20:52:54 gmt last-modified: thu, 29 mar 2012 18:19:50 gmt 

what purpose of max-age, age, date, , last modified headers if browser can use expires: date determine if should cached or refreshed?

its legacy, though headers subtly different things. different browsers work differently (certainly in past), , there wasn't standard way of doing things. eg. ie 6 won't respond modern caching headers. make sure site works correctly, have consider older browsers (at least now).

have at page information.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -