Jump to content
rovf

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

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...

 

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...