Difference between Expires and Cache-Control Header
Question by Guest | 2012-01-27 at 10:29
I would be interested in, what is the difference between the two HTML headers "Expires" and "Cache-Control".
To me, it appears as if both mean the same thing, only the notation is different. But what sense does it make to distinguish between the two?
Related Topics
Website Performance: Caching and Expires Header for Images, CSS and JavaScript
Tutorial | 0 Comments
PHP: Sending an E-Mail
Tutorial | 0 Comments
PHP: File Download Script
Tutorial | 0 Comments
Reload Images, CSS, JS and Web Pages despite Browser Cache
Tip | 2 Comments
MySQL: CSV Export as automatic Download
Tutorial | 0 Comments
PHP Mail Function: UTF-8 E-Mail Headers
Info | 0 Comments
HTML Form: Redirection depending on Radiobutton or Checkbox State
Tutorial | 0 Comments
Important Note
Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.
Participate
Ask your own question or write your own article on askingbox.com. That’s how it’s done.
The two headers were defined in two different HTTP specifications. Expires in the HTTP/1.0 definition, Cache-Control in the HTTP/1.1 definition.
As far as I know, the two really tell us the same thing, but perhaps there are browsers understanding only one of the two. So, I would always specify both.
Actually, it should not result in any problems, if you specify both. However, Cache-Control is preferred before Expires.
2012-01-29 at 10:38