daokoder / dao-modules

Dao Standard Modules
http://daovm.net
12 stars 5 forks source link

Enhancement: support for http-equiv="Expires" in the web.html module #55

Closed dumblob closed 9 years ago

dumblob commented 9 years ago

Expires is a useful meta tag:

<META HTTP-EQUIV="EXPIRES" CONTENT="Mon, 22 Jul 2002 11:12:01 GMT">
Night-walker commented 9 years ago

It's not in the html 5 spec, and stackoverflow suggests that the corresponding http header should be used instead.

dumblob commented 9 years ago

Both is true. It's a poor, but very handy solution in cases, when you can't construct http header (which is surprisingly often). Yes, it undermines the idea of caching on the pathway (because cache servers usually don't support deep content inspection), but if there is no other option...

But I agree, that we should leave the web.html module HTML5-compliant and thus I'm closing this ticket.

As a solution, one can use text('<META HTTP-EQUIV="EXPIRES" CONTENT="Mon, 22 Jul 2002 11:12:01 GMT">') instead.