Msg#: 4452335 posted 12:46 pm on May 12, 2012 (gmt 0)
the ExpiresActive and ExpiresDefault directives are mod_expires directives, so i'm not sure why you are checking mod_headers. also, you should know if your server environment has any given module configured or not so you shouldn't need the IfModule. why are you disabling ETags? i'm not sure a fixed expiration date is a good idea.
but yeah syntactically that looks correct and might even be perfect for your application.
Msg#: 4452335 posted 10:20 pm on May 13, 2012 (gmt 0)
also, you should know if your server environment has any given module configured or not so you shouldn't need the IfModule
Although if you have different versions of your site running in differing environments, the checks can ensure that the code works without error in all of them, or ensure that it continues to function even if the environment changes (such as webhost altering the config).