First of all thank you for creating such an awesome theme. I want to know how I can integrate cdnjs to use static files.
What libraries should I target. And should I just use the link or the whole script that is given in cdnjs results.
Regards
]]>RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(robots.txt|sitemap.xml(.gz)?)
RewriteCond %{REQUEST_FILENAME} .(css|js|html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$ [NC]
RewriteRule .* – [L]
The rule is within <ifModule LightSpeed> section – because otherwise it does not execute.
But of course as such it gets deleted on LigthSpeed saving.
Is there a way to add such rules to LigthSpeed plugin to keep the behavior but avoid having the theme run it?
]]>Ran some tests and GTMetrix reports that my site sends a lot of static files to the browser
https://gtmetrix.com/reports/qq.groddfron.se/34KDsMf3/
For Autoptimize, I enabled optimization but not aggregation
Then I looked at the server and saw these in Autoptimize’s cache CSS folder:
https://www.reddit.com/user/fitnesspage/comments/ofvckc/autoptimize_static_files/?utm_source=share&utm_medium=web2x&context=3
I’m just wondering are these different versions of the same file or unique files?
Are old files stored? I worry that old versions are being sent to users, delaying load times
Anyway, love this plugin!
Thank you
]]>Thanks
]]># BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<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
# BEGIN LiteSpeed
# The directives (lines) between <code>BEGIN LiteSpeed</code> and <code>END LiteSpeed</code> are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule Litespeed>
SetEnv noabort 1
</IfModule>
# END LiteSpeed
# TN - START EXPIRES CACHE
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/svg "access 1 year"
ExpiresByType image/x-icon "access 1 year"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/xhtml-xml "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 CACHE
# TN - BEGIN Cache-Control Headers
<ifModule mod_headers.c>
<filesMatch "\.(ico|jpeg|jpg|png|gif|swf|pdf|svg)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(css)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(js)$">
Header set Cache-Control "private"
</filesMatch>
<filesMatch "\.(x?html?|php)$">
Header set Cache-Control "private, must-revalidate"
</filesMatch>
</ifModule>
# TN - END Cache-Control Headers
# TN - BEGIN Turn ETags Off
FileETag None
# TN - END Turn ETags Off
]]>Love your plugin, serves a huge need!
I used the duplicator plugin to copy the content of www.ontzorgonline.nl to www.bijdepinkenzijn.nl. It seemed to have worked since I see the maintenance mode plugin when I access the site. However, I cannot access the WP dashboard of the new domain and CyberChimps support indicates that the static files are not loading. What did I do wrong?
Thanks million for your support!
Regards,
Ronald
https://www.ads-software.com/plugins/duplicator/
]]>I utilized, as written in the FAQ, the fragment caching with “disk: Basic” and I put the following code in my templates:
<! – mfunc SECRET_FRAGMENT_CACHING_PASSWORD ->
include (“/ tmp / header_with_codes.txt”);
<! –/mfunc SECRET_FRAGMENT_CACHING_PASSWORD ->
Everything works perfectly, but I noticed, as indicated in the note next to the checkbox, a strong performance degradation in terms of delivery of the pages. This degradation is unfortunately not acceptable for the site I’m working on.
Out of curiosity I tried to remove the check mark from “fragment caching” and I noticed that the static files are still included and at a speed perfectly respectable.
So to summarize:
Case A: disk: Basic + fragment caching files included but checked = SLOW performance.
Case B: drive: Basic + fragment caching files still checked = NOT included with very good performance.
I also checked the files generated as a cache, and both contain the code of the includes.
I am very pleased that the Case B works, but I wondered if this was not a bug or if I have not made ??any configuration error!
Can I take it for granted that the case B continue to operate even in future versions of total cache? I’m using version 0.9.2.11
Regards,
Marcello
https://www.ads-software.com/plugins/w3-total-cache/
]]>https://www.ads-software.com/extend/plugins/wp-super-cache/
]]>What I have on live:
www.domain.com/some_files/
www.domain.com/other_files/
www.domain.com/blog/
WP is located in /blog/ naturally
now, when integrating it into multisite, I have:
blog1.domain.com (mapped to domain1.com)
Naturally, my blog resides at the root of this domain.. I can trick it to keep the same url structure as my single site – ie. blog1.domain.com becomes domain1.com/blog/
What I need to do, is be able to keep the static directories I have on the single install. So basically, I need to be able to have:
blog1.domain.com/some_files
blog1.domain.com/other_files
Any idea on how I can do this? I know I can do
blog1.domain.com/files/come_files/
blog1.domain.com/files/other_files/
but being that this is a live site, with numerous links across other sites (that we don’t own), I need to be able to, at least, replicate the same directory structure as I had on my single installation.
Any thoughts?
]]>