Hey RueNel… thanks for writing in - your support is very much appreciated. . . . so i did have w3 total - before - and i had set and done - what i could and i know the page was loading in 5.4 seconds ( which i was happy with ) - but now my server people told me to remove it - and put heartbeat control- and Wp super cashe. ( so this is what is runing now ) - To the best of my knowledge with x theme - i think you guys recommend to use w3 total . . so i was not happy about the change ( just to let you know ) -
So - trust me when i tell you - nothing would make me happier than to be able to set up the optimization as best possible - so i would appreciate your expertise to get a fastest load . . eg . .u mention the page size is 5.7mb . . is that too big ??? what should it be - cause it could lower the size but - i have to change things in the page itself no ??? - i dont know what the optimal page size should be.
so re levarage cashe browsing … ( i understna that the htaccess has a lot to do with that. ) … .
so on my server - i find 2 of these files not 1. ( i dont know if thats normal ) or if they have to be the same to work better ) . .
from what i read its best to do this without any plugin help . .
so - pleases advise weather i should remove the plugins i mentioned - and go back to w3 or not.
in my root directory - this is the htaccess . .
Use PHP72 as default
AddHandler application/x-httpd-php72 .php
SetOutputFilter DEFLATE
# Netscape 4.x has some problems…
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
# the above regex won't work. You can use the following
# workaround to get the desired effect:
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
# Don't compress images
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
</IfModule>
<IfModule mod_headers.c>
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
</IfModule>
now in my public html folder i also find this file and this is the content.
BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
END WordPress
from what i read on the net
i should have script to ‘add expries’ . . and its like this
TN - START EXPIRES CACHING
ExpiresActive On
ExpiresByType text/css “access 1 month”
ExpiresByType text/html “access 1 month”
ExpiresByType image/gif “access 1 year”
ExpiresByType image/png “access 1 year”
ExpiresByType image/jpg “access 1 year”
ExpiresByType image/jpeg “access 1 year”
ExpiresByType image/x-icon “access 1 year”
ExpiresByType application/pdf “access 1 month”
ExpiresByType application/javascript “access 1 month”
ExpiresByType text/x-javascript “access 1 month”
ExpiresByType application/x-shockwave-flash “access 1 month”
ExpiresDefault “access 1 month”
TN - END EXPIRES CACHING #themeco
and this to add cashe control . .
TN - BEGIN Cache-Control Headers
Header set Cache-Control "public"
Header set Cache-Control "public"
Header set Cache-Control "private"
Header set Cache-Control "private, must-revalidate"
# TN - END Cache-Control Headers
and this to turn the Etags off ( whatever they are . .) - i sound like an expert.
TN - BEGIN Turn ETags Off
FileETag None
TN - END Turn ETags Off
so can you please guide me better to get this resolved once an for all?
can you please confirm how i should make my file… ( and for which directory ) - and if the file should be the same or not?
i know i sound stupid - but . . i also know i tapered with htaccess myself - from what i read - and the whole site stopped working . .
i await you reply - no hurry - of the best more optima htaccess file - should put and where:}}
once we sort out Leverage cashe browing - then we can disucss your advice on minifciation and all the rest. - im sure others like me will find this beneficial and hope to help others in the process. -
thanks andrew :}}