- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- NewspaperBest Of Forums
- NewsmagRequirements for Newsmag
- NewspaperHow to Make the Site Faster
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?
@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…
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…
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…
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..
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
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 🙂
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
no you don’t delete nothing in cpanel..that ip is not ur host it’s cloudflare ip that’s why u need to add urs in the A section…
cherrykoks.de A 5 minutes 104.28.21.26 ()
cherrykoks.de A 5 minutes 104.28.20.26 ()
cherrykoks.de MX 5 minutes 0 mxlb.ispgateway.de
cherrykoks.de NS 1 day rihana.ns.cloudflare.com
cherrykoks.de NS 1 day nick.ns.cloudflare.com
cherrykoks.de SOA 1 day nick.ns.cloudflare.com. dns.cloudflare.com. 2015873911 10000 2400 604800 3600
http://www.cherrykoks.de CNAME 5 minutes cherrykoks.de
you have two A OPITIONS that’s why i say delete all the rest u have and only used the first one…
ok now we have this right here:
http://www.screencast.com/t/o07TJqlhsflZ
is the IP correct?
Also edited the priority on cpanel to 0
by the way: didn’t choose fully optimization because of the Javascript Minify….
the documentation says: no js minfier
-
This reply was modified 12 years by
Cherry.