Jump to content

A page with more than one <meta .... expires> element


rovf

Recommended Posts

Say I have a page where I have two <META HTTP-EQUIV="expires" CONTENT="..."> elements with different expiration date. What does the standard say about this (in HTML4 and HTML5 respectively)?

 

  • Undefined behaviour?
  • The first is valid?
  • The second one is valid?
  • The one with the earlier date is valid?

I tried to google for this problem, but didn't find an answer...

 

Link to comment
Share on other sites

I don't believe the HTML specification tells browsers how to react to multiple headers.

 

You might find results in the HTTP specification about it. My guess is that only the most recent header is taken into account. Note that the HTML <meta> tag only provides a suggestion, as it is not actually a real HTTP header; the browser may choose to ignore it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...