MrGlasspoole
MrGlasspoole

Reputation: 445

Disable ETags in php?

Our webhoster moved the site to a newer server and now i have the problem that i have ETags everywhere.

I tried FileETag None in the htaccess but that does not work. They told me on the phone that the ETags are not coming from Apache and that it is from the new php and that i have to disable them there.

Put i can't find something about php 5 is sending ETags per standard and can't find a setting to disable it in php.ini.

Does somebody know where to disable ETags in php?

Upvotes: 3

Views: 1624

Answers (2)

Michael Yaeger
Michael Yaeger

Reputation: 824

This explains how to disable ETags via .htaccess for your Apache-powered website:

# Disable ETags
<IfModule mod_headers.c>
    Header unset ETag
</IfModule>
FileETag None

Reference: Disable ETags

Upvotes: 0

ovi
ovi

Reputation: 441

Try the following in your .htaccess:

Header unset ETag
FileETag None

Upvotes: 2

Related Questions