use*_*311 12 timezone http-headers
这是有关Expires和Last-Modified HTTP标头中指定的时区的问题.
在我看到的大多数示例中,我总是将GMT视为HTTP标头中的指定时区.
例如
最后修改日期:2009年10月21日00:00:00 GMT
到期日:2009年10月28日00:00:00 GMT
您知道浏览器是否只了解GMT,或者我们是否可以在这些HTTP标头中指定任何其他时区?
例如
最后修改日期:2009年10月21日00:00:00 PDT
到期日:2009年10月28日00:00:00 PDT
提前致谢,
维韦克
mjv*_*mjv 23
在我们这个全球化的世界中,将这些Expires和其他与时间相关的元素发送到GMT 是有意义的,这确实是标准所要求的.
关于格式,HTTP(RFC2616)指定Expires头元素的格式,以符合指向RFC802的 RFC1123本身.
关于时区,但第3.3.1节明确指出:
All HTTP date/time stamps MUST be represented in Greenwich Mean Time (GMT), without exception. For the purposes of HTTP, GMT is exactly equal to UTC (Coordinated Universal Time). This is indicated in the first two formats by the inclusion of "GMT" as the three-letter abbreviation for time zone, and MUST be assumed when reading the asctime format. HTTP-date is case sensitive and MUST NOT include additional LWS beyond that specifically included as SP in the grammar.