nchan icon indicating copy to clipboard operation
nchan copied to clipboard

Firefox 4 compatibility

Open isc opened this issue 15 years ago • 1 comments

The module doesn't seem to be compatible with Firefox 4. I've narrowed it down to the fact that the presence of the Vary header causes Firefox 4 not to send the If-Modified-Since header (only the If-None-Match header) which causes the message queue traversal to fail. I've temporarily worked around this by optionally adding the Vary header depending on the presence of "Firefox/4" in the user agent string : if (r->headers_in.user_agent == NULL || r->headers_in.user_agent->value.data == NULL || !ngx_strstrn(r->headers_in.user_agent->value.data, "Firefox/4", 9 - 1)){ ngx_http_push_add_response_header(r, &NGX_HTTP_PUSH_HEADER_VARY, &NGX_HTTP_PUSH_VARY_HEADER_VALUE); }

Would you happen to have a better / cleaner solution for my problem ? Thanks in advance for your help.

isc avatar Mar 31 '11 09:03 isc

old firefox is old. Won't fix, although the Vary header could probably be be modified with the nginx headers directive.

slact avatar Mar 22 '14 15:03 slact