Forum Moderators: phranque
Where should cache control rules be located in my htaccess file? At the top?In Apache, each module is an island. The server doesn’t care whether the directives for module A are before module B, after module B ... or randomly mixed together. Put them where it is most intuitively comfortable for you. I like to put single-line directives--such as caching rules, options, error documents and the like--at the beginning, before getting into the modules like setenvif or rewrite that each will have a whole lot of rules.