Apache ignoring PHP headers when sending a 304

前端 未结 4 1993
既然无缘
既然无缘 2021-01-18 08:25

When I set a custom header in Apache + mod_php5, this works fine:

header(\'Foo: Bar\');

But when I try this while also sending a 3

4条回答
  •  生来不讨喜
    2021-01-18 09:09

    Does this not answer the question?

    If the conditional GET used a strong cache validator (see section 13.3.3), the response SHOULD NOT include other entity-headers. Otherwise (i.e., the conditional GET used a weak validator), the response MUST NOT include other entity-headers; this prevents inconsistencies between cached entity-bodies and updated headers.

    from http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.5

提交回复
热议问题