Jump to content

Configure Etags ?


Recommended Posts

ETags are a server dependent setting. If you are using Apache see here for the syntax to configure them. Setting them can be as simple as adding:

 

FileETag All

 

to the .htaccess generated in Back Office > Tools > Generators > .htaccess file generation > Specific configuration

 

But do read the reason you got an F first and pros, cons of having them (e.g. ETags, unreasonably, invalidates PCI compliance).

Link to comment
Share on other sites

Thanks, phrasespot, I take it it is safe to configure Etags if the site is hosted on a single Apache server, that being my case too, my site is hosted on a shared Apache solution on a single server. I don't have access to server configuration so If I am to do that I wil have to add the FileETag All to my htaccess as you say.

What is your opinion, will this Etags mod help my site or wouldn't that matter ?

Kind Regards,

Link to comment
Share on other sites

Do you need to be PCI compliant, then etags are out of the question. If not, then etags is the validation side of a caching policy (the other is freshness). As usual there is more than one way of doing things (e.g. you can send Last-modified header instead of etag header, both will prompt the browser to add if-modified-since to requests). You need to decide on some things depending on your setup. Read this document, and ask if there is anything unclear.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...