My .htaccess file is the default sample that comes with 2.2.5, and I added in these StatCache rules right after RewriteBase /:
# If MODX is directly in your DOCUMENT_ROOT,
# add this before your MODX Friendly URLs RewriteCond's and RewriteRule...
RewriteCond %{DOCUMENT_ROOT}/statcache%{REQUEST_URI}~index.html -f
RewriteRule ^(.*)$ /statcache/$1~index.html [L,QSA]
RewriteCond %{DOCUMENT_ROOT}/statcache%{REQUEST_URI} -f
RewriteRule ^(.*)$ /statcache/$1 [L,QSA]
I then created another .htaccess file within statcache containing:
<files *>
ForceType text/html
</files>
However, this file gets deleted every time I "Clear Cache" from the top menu. How would I tell StatCache to ignore this .htaccess?