Expiresis preferred over
Cache-Control: max-agebecause it is more widely supported. Do not set it to more than one year in the future, as that violates the RFC guidelines.
These headers for browser caching are to be enabled on your server. Static resources should have a cache lifetime of at least a week. For third-party resources like ads or widgets, they should have a cache lifetime of at least one day.