Hi Kate,
Sorry for the delay in my reply. I’ve been travelling.
You mentioned one week ago that you put this code in your .htaccess file:
FilesMatch "(\.js\.gz|\.css\.gz)$">
Header append Vary Accept-Encoding
RewriteRule (.*).(js|css)$ cache_gzip.php?file=$1.$2 [L]
.
# Buforowanie plików gif, jpg, png, css, js przez 30 dni
# 30 dni * 24 godziny * 60 minut * 60 sekund = 2592000 sekund
# A - czas wa?no?ci jest ustawiony od chwili, w której Klient pobra? dokument
# M - (opcja) czas wa?no?ci jest liczony od daty modyfikacji danego dokumentu
:Location *.(gif|jpg|png|css|js)
Expires A2592000
And I add new php. file to wordpress
<?php
//plik cache_gzip.php
$file=$_GET['file'];
if (!is_file($file.'.gz') or filemtime($file.'.gz') < filemtime($file)) {
copy($file, 'compress.zlib://'.$file.'.gz');
}
if (!empty($_SERVER['HTTP_ACCEPT_ENCODING']) and strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false) {
header("cache-control: must-revalidate");
if (strrchr($file, '.') == '.css') {
header('Content-type:text/css');
} elseif (strrchr($file, '.') == '.js') {
header('Content-type:text/javascript');
}
header('Content-Encoding: gzip');
header('Vary: Accept-Encoding');
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
$expire = "expires: " . gmdate("D, d M Y H:i:s", time() + 2592000) . " GMT";
header($expire);
readfile($file.'.gz');
} else {
readfile($file);
}
?>
My suggestion is that
1. you make sure the Falcon caching is disabled, make a backup copy of your .htaccess file, and then remove all the code except the standard WordPress rules (leave these in place):
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
and then
2. You remove the php file you added
and then
3. Try to activate the fFalcon caching.
If you have problems with this setup you can check in your cPanel (you host should have given you login access details for this (url + username + password). In the cPanel you can access a file called you Error logs . Open this file and copy the information here so it can be reviewed. There may be useful clues in the logs to help identify the conflict.