.htaccess Browser Cache Busting

by Michael Cannon in Server, Tech · 0 comments

While not as tasty as breaking apart one of Peichi’s baguettes, once in a while, you actually want to disable browser cache functionality.

In a recent project, the TYPO3 performance optimizations went very well, dropping page load times by over 50%. However, since Apache’s mod_expires and mod_headers adjustments were made at top the top level of the website file structure, some applications in sub-directories appeared to have become broken. The reality was, the browser cache was showing us old page states.

The fix…

Turn Off Browser Caching with .htaccess

<IfModule mod_expires.c>
    ExpiresActive off
<IfModule mod_headers.c>
    Header unset Cache-Control

It’s possible for your browser cache busting, that only Header unset Cache-Control is needed. For ours, CSS, JavaScript and even images could’ve changed, hence; ExpiresActive off.

Be Sociable, Share!

Related Entries

  • No Related Entries
About Michael Cannon

Hello, I'm Michael Cannon, Peichi's smiling man, an adventurous water-ratchief technology officer, cyclist, poet, WWOOF'er and world traveler.

Previous post:

Next post: