Give ur site a hour are so to let clouldflare do they job,you should get a welcome email from them letting you know ur sit is on cloudflare etc..
Congratulations! You have successfully added the website jahliveradio.com to CloudFlare. CloudFlare is a service that makes your website faster, safer, and smarter. To get the most out of our service, we recommend the following resources:
blah blah
oh ok đ
I have to thank you for your great help!
Never made it without your help đ
Just checked Y-Slow and it says “add expired headers” – I think I already did this oO Why do I get this message?
My htaccess file code to this:
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/css “access plus 1 month”
ExpiresByType text/javascript “access plus 1 month”
ExpiresByType text/html “access plus 1 month”
ExpiresByType application/javascript “access plus 1 month”
ExpiresByType application/x-javascript “access plus 1 month”
ExpiresByType application/xhtml-xml “access plus 600 seconds”
ExpiresByType image/gif “access plus 1 month”
ExpiresByType image/jpeg “access plus 1 month”
ExpiresByType image/png “access plus 1 month”
ExpiresByType image/x-icon “access plus 1 month”
</IfModule>
<ifmodule mod_headers.c>
<filesmatch “\\.(ico|jpe?g|png|gif|swf)$”>
Header set Cache-Control “max-age=2592000, public”
</filesmatch>
<filesmatch “\\.(css)$”>
Header set Cache-Control “max-age=604800, public”
</filesmatch>
<filesmatch “\\.(js)$”>
Header set Cache-Control “max-age=216000, private”
</filesmatch>
<filesmatch “\\.(x?html?|php)$”>
Header set Cache-Control “max-age=600, private, must-revalidate”
Weird.
But we will see the next days- how Cloudflare works đ
Oh well big other question by all of that right now:
Now that I have CF and the Plugin for Query Strings…. is W3 Cache still necessary?
Or can I delete this plugin now?
Or should I deactivate : Async JS and CSS settings?
There’s a point with: Remove “?ver=XXX” part from URLs – Enabled….
but as you can see from my GTMetrix- still complaining about my query strings.
-
This reply was modified 12 years by
Cherry. Reason: add
Right now the only plugin you need is “The theme SpeedBooster” and good cache plugin and leave the rest to cloudflare…
The plugins i’m using right now to better my site in speed and SEO is:
1.WP Super Cache
2.EWWW Image Optimizer
3.Leverage Browser Caching Ninja
4.Noindex Attachment Pages
5.Optimize Database after Deleting Revisions
6.SEO Friendly Images
7.tagDiv speed booster
8.TTT Devices
9.CloudFlare
10. HTML5 Boilerplate optimized performance
11.Code Snippets (TO ADD MY functions.php files) don’t need to go in my theme to add any thing through this plugin i can do it from the admin side..
My super Cache settings as follow…
1.Cache hits to this website for quick access. (Recommended)
2.Use PHP to serve cache files
3. Compress pages so theyâre served more quickly to visitors. (Recommended)
4.Make known users anonymous so theyâre served supercached static files.
5.Cache rebuild. Serve a supercache file to anonymous users while a new file is being generated. (Recommended)
6.Clear all cache files when a post or page is published or updated.
7.Extra homepage checks. (Very occasionally stops homepage caching) (Recommended)
Expiry Time & Garbage Collection
1.Cache Timeout 60sec
2.Timer: 90secs
that’s all..these settings works great for me…
Hey cherry delete that plugin for the “Query Strings” and install this plugin http://wordpress.org/plugins/code-snippets/
after you install the plugin then add this code in the plugin
You going see Add New after you going name it “Query Strings Remover” and in the box add that code below,this code going right in ur “functions.php”
function remove_cssjs_ver( $src ) {
if( strpos( $src, ‘?ver=’ ) )
$src = remove_query_arg( ‘ver’, $src );
return $src;
}
add_filter( ‘style_loader_src’, ‘remove_cssjs_ver’, 10, 2 );
add_filter( ‘script_loader_src’, ‘remove_cssjs_ver’, 10, 2 );
After you add the code go back to the plugin “Snippets” and click manage and you going see what you add hover the name and click active…that’s all to it
Every time you will like to add some files too ur functions.php used that plugin too do it…
@Cherry removed this from ur .htaccess…
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/css âaccess plus 1 monthâ
ExpiresByType text/javascript âaccess plus 1 monthâ
ExpiresByType text/html âaccess plus 1 monthâ
ExpiresByType application/javascript âaccess plus 1 monthâ
ExpiresByType application/x-javascript âaccess plus 1 monthâ
ExpiresByType application/xhtml-xml âaccess plus 600 secondsâ
ExpiresByType image/gif âaccess plus 1 monthâ
ExpiresByType image/jpeg âaccess plus 1 monthâ
ExpiresByType image/png âaccess plus 1 monthâ
ExpiresByType image/x-icon âaccess plus 1 monthâ
</IfModule>
<ifmodule mod_headers.c>
<filesmatch â\\.(ico|jpe?g|png|gif|swf)$â>
Header set Cache-Control âmax-age=2592000, publicâ
</filesmatch>
<filesmatch â\\.(css)$â>
Header set Cache-Control âmax-age=604800, publicâ
</filesmatch>
<filesmatch â\\.(js)$â>
Header set Cache-Control âmax-age=216000, privateâ
</filesmatch>
<filesmatch â\\.(x?html?|php)$â>
Header set Cache-Control âmax-age=600, private, must-revalidateâ
WP Cache will add some code like that as well and clouldflare also do some of this for you…if you have too many codes doing the same thing u will not see the effects of any thing..and it can also cause problems…
Ok, slowly đ
I understand:
I should delete the plugin “query strings remover” and install code snippets? Y/N
When I installed the snippet plugin I have to put the code in the plugin and name it: Query Strings Remover? Y/N
After this I have to click “manage” and then “active”?
“Every time you will like to add some files too ur functions.php used that plugin too do it⊔
Everytime I want to insert a code or everytime I install a plugin or other?
Will this help me better with “Remove query strings from static resources?
Or what’s the benefit?
http://gtmetrix.com/reports/cherrykoks.de/ZLMI7Vc0
that’s mine right now… ok added the Snippets, was easy. đ
http://gtmetrix.com/reports/cherrykoks.de/STlNODSg
here tried again with super cache đ
What is important is that if u add any codes etc before to ur htaccess file that going be doing the same thing as cloudflare are any other plugin you have install then you will never see god results…
I try to not add too much crap to my htaccess file unless it’s important for me because that htaccess file can make problems for you as well if you keep adding a lot crap too it…
My .htaccess file on my site…WARNING DON’T USED MINE ARE IT WILL BREAK UR SITE..MINE IS LIKE THIS BECAUSE OF OTHER THINGS THAT I HAVE DONE ON MY SITE for safty…
# BEGIN All In One WP Security
#AIOWPS_BLOCK_WP_FILE_ACCESS_START
<Files license.txt>
order allow,deny
deny from all
</files>
<Files wp-config-sample.php>
order allow,deny
deny from all
</Files>
<Files readme.html>
order allow,deny
deny from all
</Files>
#AIOWPS_BLOCK_WP_FILE_ACCESS_END
#AIOWPS_BASIC_HTACCESS_RULES_START
<Files .htaccess>
order allow,deny
deny from all
</Files>
ServerSignature Off
LimitRequestBody 10240000
<Files wp-config.php>
order allow,deny
deny from all
</Files>
#AIOWPS_BASIC_HTACCESS_RULES_END
#AIOWPS_PINGBACK_HTACCESS_RULES_START
<IfModule mod_alias.c>
RedirectMatch 403 /(.*)/xmlrpc\.php$
</IfModule>
#AIOWPS_PINGBACK_HTACCESS_RULES_END
#AIOWPS_DISABLE_INDEX_VIEWS_START
Options -Indexes
#AIOWPS_DISABLE_INDEX_VIEWS_END
#AIOWPS_DISABLE_TRACE_TRACK_START
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* – [F]
#AIOWPS_DISABLE_TRACE_TRACK_END
#AIOWPS_FORBID_PROXY_COMMENTS_START
RewriteCond %{REQUEST_METHOD} =POST
RewriteCond %{HTTP:VIA}%{HTTP:FORWARDED}%{HTTP:USERAGENT_VIA}%{HTTP:X_FORWARDED_FOR}%{HTTP:PROXY_CONNECTION} !^$ [OR]
RewriteCond %{HTTP:XPROXY_CONNECTION}%{HTTP:HTTP_PC_REMOTE_ADDR}%{HTTP:HTTP_CLIENT_IP} !^$
RewriteCond %{REQUEST_URI} !^/(wp-login.php|wp-admin/|wp-content/plugins/|wp-includes/).* [NC]
RewriteRule .* – [F,NS,L]
#AIOWPS_FORBID_PROXY_COMMENTS_END
#AIOWPS_FIVE_G_BLACKLIST_START
# 5G BLACKLIST/FIREWALL (2013)
# @ http://perishablepress.com/5g-blacklist-2013/
# 5G:[QUERY STRINGS]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} (\”|%22).*(<|>|%3) [NC,OR]
RewriteCond %{QUERY_STRING} (javascript:).*(\;) [NC,OR]
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3) [NC,OR]
RewriteCond %{QUERY_STRING} (\\|\.\./|`|=’$|=%27$) [NC,OR]
RewriteCond %{QUERY_STRING} (\;|’|\”|%22).*(union|select|insert|drop|update|md5|benchmark|or|and|if) [NC,OR]
RewriteCond %{QUERY_STRING} (base64_encode|localhost|mosconfig) [NC,OR]
RewriteCond %{QUERY_STRING} (boot\.ini|echo.*kae|etc/passwd) [NC,OR]
RewriteCond %{QUERY_STRING} (GLOBALS|REQUEST)(=|\[|%) [NC]
RewriteRule .* – [F]
</IfModule>
# 5G:[USER AGENTS]
<IfModule mod_setenvif.c>
# SetEnvIfNoCase User-Agent ^$ keep_out
SetEnvIfNoCase User-Agent (binlar|casper|cmsworldmap|comodo|diavol|dotbot|feedfinder|flicky|ia_archiver|jakarta|kmccrew|nutch|planetwork|purebot|pycurl|skygrid|sucker|turnit|vikspider|zmeu) keep_out
<limit GET POST PUT>
Order Allow,Deny
Allow from all
Deny from env=keep_out
</limit>
</IfModule>
# 5G:[REQUEST STRINGS]
<IfModule mod_alias.c>
RedirectMatch 403 (https?|ftp|php)\://
RedirectMatch 403 /(https?|ima|ucp)/
RedirectMatch 403 /(Permanent|Better)$
RedirectMatch 403 (\=\\\’|\=\\%27|/\\\’/?|\)\.css\()$
RedirectMatch 403 (\,|\)\+|/\,/|\{0\}|\(/\(|\.\.\.|\+\+\+|\||\\\”\\\”)
RedirectMatch 403 \.(cgi|asp|aspx|cfg|dll|exe|jsp|mdb|sql|ini|rar)$
RedirectMatch 403 /(contac|fpw|install|pingserver|register)\.php$
RedirectMatch 403 (base64|crossdomain|localhost|wwwroot|e107\_)
RedirectMatch 403 (eval\(|\_vti\_|\(null\)|echo.*kae|config\.xml)
RedirectMatch 403 \.well\-known/host\-meta
RedirectMatch 403 /function\.array\-rand
RedirectMatch 403 \)\;\$\(this\)\.html\(
RedirectMatch 403 proc/self/environ
RedirectMatch 403 msnbot\.htm\)\.\_
RedirectMatch 403 /ref\.outcontrol
RedirectMatch 403 com\_cropimage
RedirectMatch 403 indonesia\.htm
RedirectMatch 403 \{\$itemURL\}
RedirectMatch 403 function\(\)
RedirectMatch 403 labels\.rdf
RedirectMatch 403 /playing.php
RedirectMatch 403 muieblackcat
</IfModule>
# 5G:[REQUEST METHOD]
<ifModule mod_rewrite.c>
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* – [F]
</IfModule>
#AIOWPS_FIVE_G_BLACKLIST_END
#AIOWPS_PREVENT_IMAGE_HOTLINKS_START
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g?|png)$ [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://jahliveradio\.com [NC]
RewriteRule \.(gif|jpe?g?|png)$ – [F,NC,L]
</IfModule>
#AIOWPS_PREVENT_IMAGE_HOTLINKS_END
# END All In One WP Security
# BEGIN NinjaFirewall (WP+)
<IfModule !mod_php5.c>
<IfModule mod_env.c>
SetEnv PHPRC /home/hxnlfcaw/public_html/.user.ini
</IfModule>
</IfModule>
# END NinjaFirewall (WP+)
# BEGIN HTML5 Boilerplate
# This contains the HTML5 Boilerplate .htaccess that can be found at:
# github.com/h5bp/html5-boilerplate/blob/master/.htaccess
#
# Added:
# Block access to access to WordPress files that reveal version information.
#
# Commented out by default:
# Expires headers: Use WP Super Cache or W3 Total Cache (unless using the H5BP build script)
# ETag removal: Use WP Super Cache or W3 Total Cache (unless using the H5BP build script)
# Start rewrite engine: Handled by WordPress
# Suppress/force www: Handled by WordPress
# Custom 404 page: Handled by WordPress
#
# Anytime you update this file the .htaccess file in the root of your
# WordPress install is automatically updated with the changes whenever
# the permalinks are flushed or set
#
# ———————————————————————-
# Better website experience for IE users
# ———————————————————————-
# Force the latest IE version, in various cases when it may fall back to IE7 mode
# github.com/rails/rails/commit/123eb25
# Use ChromeFrame if it’s installed for a better experience for the poor IE folk
<IfModule mod_headers.c>
Header set X-UA-Compatible “IE=edge”
# mod_headers can’t match by content-type, but we don’t want to send this header on *everything*…
<FilesMatch “\.(appcache|crx|css|eot|gif|htc|ico|jpe?g|js|m4a|m4v|manifest|mp4|oex|oga|ogg|ogv|otf|pdf|png|safariextz|svg|svgz|ttf|vcf|webapp|webm|webp|woff|xml|xpi)$”>
Header unset X-UA-Compatible
</FilesMatch>
</IfModule>
# ———————————————————————-
# CORS-enabled images (@crossorigin)
# ———————————————————————-
# Send CORS headers if browsers request them; enabled by default for images.
# developer.mozilla.org/en/CORS_Enabled_Image
# blog.chromium.org/2011/07/using-cross-domain-images-in-webgl-and.html
# hacks.mozilla.org/2011/11/using-cors-to-load-webgl-textures-from-cross-domain-images/
# wiki.mozilla.org/Security/Reviews/crossoriginAttribute
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
# mod_headers, y u no match by Content-Type?!
<FilesMatch “\.(gif|png|jpe?g|svg|svgz|ico|webp)$”>
SetEnvIf Origin “:” IS_CORS
Header set Access-Control-Allow-Origin “*” env=IS_CORS
</FilesMatch>
</IfModule>
</IfModule>
# ———————————————————————-
# Webfont access
# ———————————————————————-
# Allow access from all domains for webfonts.
# Alternatively you could only whitelist your
# subdomains like “subdomain.example.com”.
<IfModule mod_headers.c>
<FilesMatch “\.(eot|font.css|otf|ttc|ttf|woff)$”>
Header set Access-Control-Allow-Origin “*”
</FilesMatch>
</IfModule>
# ———————————————————————-
# Proper MIME type for all files
# ———————————————————————-
<IfModule mod_mime.c>
# JavaScript
# Normalize to standard type (it’s sniffed in IE anyways)
# tools.ietf.org/html/rfc4329
AddType application/javascript js jsonp
AddType application/json json
# Audio
AddType audio/ogg oga ogg
AddType audio/mp4 m4a f4a f4b
# Video
AddType video/ogg ogv
AddType video/mp4 mp4 m4v f4v f4p
AddType video/webm webm
AddType video/x-flv flv
# SVG
# Required for svg webfonts on iPad
# twitter.com/FontSquirrel/status/14855840545
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
# Webfonts
AddType application/vnd.ms-fontobject eot
AddType application/x-font-ttf ttf ttc
AddType font/opentype otf
AddType application/x-font-woff woff
# Assorted types
AddType application/octet-stream safariextz
AddType application/x-chrome-extension crx
AddType application/x-opera-extension oex
AddType application/x-shockwave-flash swf
AddType application/x-web-app-manifest+json webapp
AddType application/x-xpinstall xpi
AddType application/xml atom rdf rss xml
AddType image/webp webp
AddType image/x-icon ico
AddType text/cache-manifest appcache manifest
AddType text/vtt vtt
AddType text/x-component htc
AddType text/x-vcard vcf
</IfModule>
# ———————————————————————-
# Gzip compression
# ———————————————————————-
<IfModule mod_deflate.c>
# Force compression for mangled headers.
# http://developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
RequestHeader append Accept-Encoding “gzip,deflate” env=HAVE_Accept-Encoding
</IfModule>
</IfModule>
# Compress all output labeled with one of the following MIME-types
# (for Apache versions below 2.3.7, you don’t need to enable mod_filter
# and can remove the <IfModule mod_filter.c> and </IfModule> lines
# as AddOutputFilterByType is still in the core directives).
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE application/atom+xml \
AddOutputFilterByType DEFLATE application/javascript \
AddOutputFilterByType DEFLATE application/json \
AddOutputFilterByType DEFLATE application/rss+xml \
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject \
AddOutputFilterByType DEFLATE application/x-font-ttf \
AddOutputFilterByType DEFLATE application/x-web-app-manifest+json \
AddOutputFilterByType DEFLATE application/xhtml+xml \
AddOutputFilterByType DEFLATE application/xml \
AddOutputFilterByType DEFLATE font/opentype \
AddOutputFilterByType DEFLATE image/svg+xml \
AddOutputFilterByType DEFLATE image/x-icon \
AddOutputFilterByType DEFLATE text/css \
AddOutputFilterByType DEFLATE text/html \
AddOutputFilterByType DEFLATE text/plain \
AddOutputFilterByType DEFLATE text/x-component \
AddOutputFilterByType DEFLATE text/xml
</IfModule>
</IfModule>
# ———————————————————————-
# UTF-8 encoding
# ———————————————————————-
# Use UTF-8 encoding for anything served text/plain or text/html
AddDefaultCharset utf-8
# Force UTF-8 for a number of file formats
<IfModule mod_mime.c>
AddCharset utf-8 .atom .css .js .json .rss .vtt .webapp .xml
</IfModule>
# ———————————————————————-
# A little more security
# ———————————————————————-
# “-Indexes” will have Apache block users from browsing folders without a default document
# Usually you should leave this activated, because you shouldn’t allow everybody to surf through
# every folder on your server (which includes rather private places like CMS system folders).
<IfModule mod_autoindex.c>
Options -Indexes
</IfModule>
# Block access to backup and source files
# This files may be left by some text/html editors and
# pose a great security danger, when someone can access them
<FilesMatch “(\.(bak|config|sql|fla|psd|ini|log|sh|inc|swp|dist)|~)$”>
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
# Block access to WordPress files that reveal version information.
<FilesMatch “^(wp-config\.php|readme\.html|license\.txt)”>
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
# END HTML5 Boilerplate
# 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
# Leverage Browser Caching Ninja — Starts here
# Do not write anything between “Leverage Browser Caching Ninja — Starts” and “Leverage Browser Caching Ninja — Ends”
# It will be deleted while uninstalling Leverage Browser Caching Ninja plugin
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault “access plus 1 month”
ExpiresByType image/x-icon “access plus 1 year”
ExpiresByType image/gif “access plus 1 month”
ExpiresByType image/png “access plus 1 month”
ExpiresByType image/jpg “access plus 1 month”
ExpiresByType image/jpeg “access plus 1 month”
ExpiresByType text/css “access 1 month”
ExpiresByType application/javascript “access plus 1 year”
</IfModule>
# Leverage Browser Caching Ninja — Ends here


