SMF Mod Site

Mod Name:
Simple .htaccess Cache Mod
Created By:
New Feature
First Created:
August 08, 2010, 06:02:55 PM
Last Modified:
September 03, 2016, 09:47:55 PM
Latest Version:
Compatible With:
Total Downloads:

Download this mod

Simple.htaccessCacheMod-v2.7.tar.gz (82kB) [330]
Manual Install Instructions for SMF

Below are some preview images of what the mod looks like when being used


Simple .htaccess Cache Mod v2.7
~{By PaulpBaker}~

Link to Mod | My Mods | Support Topic

Version independent so will work on ALL versions of SMF!

Very simple 'mod' to add some basic yet very effective caching option to your .htaccess file.

(Please read the below warnings in the 'Notes' section)

Before using this mod:

Page load time: 4.04s
Total page size: 139KB

After using this mod:

Page load time: 2.80s
Total page size: 52.2KB

(See screenshots for results)

This mod is fully compatible with my other .htaccess mods: Simple .htaccess Bot Blocker Mod and Simple .htaccess Proxy Blocker Mod

Have some suggestions to make this mod better? Please let me know in the support topic.

Requires: mod_deflate, mod_expires and mod_gzip to be installed and enabled for apache.

If you get any errors after installing this you ether didn't have mod_deflate, mod_expires and mod_gzip installed/enabled but you can simply uninstall this 'mod' by removing the following code from your .htaccess file in your web root folder

Code: [Select]
#Simple .htaccess Cache Mod
[code here]
#Simple .htaccess Cache Mod

Any previous versions of this mod MUST be uninstalled BEFORE installing this version.

Install the package on the SMF Default 'Curve' Theme ONLY. Other themes will need manual edits.

Useful Links
SMF Package Parser
Manual Installation Of Mods
How Do I Modify Files?

Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)

v2.7 - 1st September 2016: Updated to make compatible with SMF 2.0.11
v2.6 - 21st October 2010: Added uninstall option
v2.5 - 19th August 2010: Added support for mod_gzip which should improve loading times
v2.0 - 17th August 2010: Total rewrite of the mod so stop it from causing problems for people who already have a .htaccess file
v1.1 - 16th August 2010: Made the code a little more sexy and added some error protection (thanks Sirius OCTeam!)
v1.0 - 8th August 2010: Initial Version