php - Putting headers back when Apache strips them out -
i'm trying implement etags in php script. $hash 40 character hex string, , rfc etags says there's no maximum length.
header("x-etag: $hash"); header("etag: $hash"); the first header, test, comes through properly; when inspect request in chrome, see header. but, second (actual) etag header doesn't show up. suspect server administrator stripping headers in apache configuration, , etag 1 of them.
i tried wrapping $hash double quotes made no difference.
can override behavior @ .htaccess level etag header sent php goes through?
it evil header unset etag directive in .htaccess file. removing made etag show up.
Comments
Post a Comment