tropicalista
Forum Replies Created
-
Glad you like it.
I have integrated a lot of features in the new version and more are coming.
Stay tuned!!
Forum: Plugins
In reply to: [Fast Velocity Minify] Inline enqueue styleThank you for this great plugin.
I would also ask you something about the plugin optimization.
Does it minify on every request or it simply evaluate change on css and skip if it’s already minified?
I’d like to use it with openlitespeed cache module, any optimization you could suggest?
Forum: Plugins
In reply to: [Fast Velocity Minify] Inline enqueue styleYes I found the code that strip out my cookie.css.
I think that
if (stripos($hurl, $i) !== false) { return true; }
match the default
ie.css
with cookie.css.So simply renaiming the css file will solve this. I’m not sure if this is a bug or by design, however this should be added in the documentation.
Forum: Plugins
In reply to: [Fast Velocity Minify] Inline enqueue styleAfter some more test I noticed that renaiming the file as
ciccio.css
it works. So I suppose that fastvelocity_ie_blacklist function remove it. However I haven’t add cookie.css file to blacklist.
Forum: Plugins
In reply to: [Fast Velocity Minify] Inline enqueue styleI want also add that in my functions.php
function add_cookie_consent(){ wp_enqueue_style( 'cookie-consent', get_stylesheet_directory_uri() . '/css/cookie.css' ); wp_enqueue_script( 'cookie-consent', 'https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.6/cookieconsent.min.js', null, null, true ); wp_enqueue_script( 'cookie-js', get_stylesheet_directory_uri() . '/js/cookie.js', array(), '', true ); } add_action( 'wp_enqueue_scripts', 'add_cookie_consent' );
I add css and js files.
The js files are minified correctly. The css simply got ignored.
Forum: Plugins
In reply to: [Fast Velocity Minify] Inline enqueue styleI try to clarify.
I’ve uploaded my child theme on piccoloprestitoinpdap.net. After seeing some css not getting minified I made some tests on local.
If I try to dump css list
var_dump($styles->to_do); exit;
I see my cookie-consent css in the array. So I suppose the error is when plugin tries to inline all header css.
I have no plugin enabled, just a fresh wordpress install.
The child theme I’m using is https://github.com/Tropicalista/mytheme a generatepress child theme.
Forum: Plugins
In reply to: [Fast Velocity Minify] Inline enqueue styleI’m testing it locally.
I’ve dumped css in
fastvelocity_min_merge_header_css
function and I see it is in the loop.FOr some reason the code skips this css.
Forum: Plugins
In reply to: [Fast Velocity Minify] Inline enqueue styleThis is how I enqueue it:
function add_cookie_consent(){ wp_enqueue_style( 'cookie-consent', get_stylesheet_directory_uri() . '/css/cookie.css' ); wp_enqueue_script( 'cookie-consent', 'https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.6/cookieconsent.min.js', null, null, true ); wp_enqueue_script( 'cookie-js', get_stylesheet_directory_uri() . '/js/cookie.js', array(), '', true ); } add_action( 'wp_enqueue_scripts', 'add_cookie_consent' );
Forum: Plugins
In reply to: [LiteSpeed Cache] Once per day cache must be flushed or site visually breaksI got similar problem. Can you share your link?
Forum: Plugins
In reply to: [LiteSpeed Cache] Browser cache not workingSeems a bug on openlitespeed. I’d like to have help on this. I can create a user and give access to check if it’s my misunderstanding of server settings or a serious bug.
Forum: Plugins
In reply to: [LiteSpeed Cache] Browser cache not workingFurther informations: if you go on https://www.prestitiinpdap.it/mutui-inpdap/ you see that image have
cache-control
but it’s not hit by litespeed cache.However css and js doesn’t have any expires header.
Forum: Plugins
In reply to: [LiteSpeed Cache] Browser cache not workingAnd here’s my cache module config:
enableCache 0 enablePrivateCache 0 checkPublicCache 1 checkPrivateCache 1 qsCache 1 reqCookieCache 1 ignoreReqCacheCtrl 1 ignoreRespCacheCtrl 0 respCookieCache 1 expireInSeconds 3600 privateExpireInSeconds 3600 maxStaleAge 200 maxCacheObjSize 10000000 storagepath cachedata noCacheDomain noCacheUrl no-vary 0 addEtag 0
Forum: Plugins
In reply to: [LiteSpeed Cache] Browser cache not workingHere’s my htaccess file:
# BEGIN LSCACHE ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## <IfModule LiteSpeed> RewriteEngine on CacheLookup on RewriteRule .* - [E=Cache-Control:no-autoflush] RewriteRule min/\w+\.(css|js) - [E=cache-control:no-vary] ### marker CACHE RESOURCE start ### RewriteRule LSCWP_CONTENT_FOLDER/.*/[^/]*(responsive|css|js|dynamic|loader|fonts)\.php - [E=cache-control:max-age=3600] ### marker CACHE RESOURCE end ### ### marker LOGIN COOKIE start ### RewriteRule .? - [E="Cache-Vary:wp-postpass_6f658d45f2699b4444b0184733ddbf4b"] ### marker LOGIN COOKIE end ### ### marker FAVICON start ### RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400] ### marker FAVICON end ### ### marker BROWSER CACHE start ### <FilesMatch "\.(pdf|ico|svg|xml|jpg|jpeg|png|gif|webp|ogg|mp4|webm|js|css|woff|woff2|ttf|eot)(\.gz)?$"> <IfModule mod_expires.c> ExpiresActive on ExpiresByType application/pdf A2592000 ExpiresByType image/x-icon A2592000 ExpiresByType image/vnd.microsoft.icon A2592000 ExpiresByType image/svg+xml A2592000 ExpiresByType image/jpg A2592000 ExpiresByType image/jpeg A2592000 ExpiresByType image/png A2592000 ExpiresByType image/gif A2592000 ExpiresByType image/webp A2592000 ExpiresByType video/ogg A2592000 ExpiresByType audio/ogg A2592000 ExpiresByType video/mp4 A2592000 ExpiresByType video/webm A2592000 ExpiresByType text/css A2592000 ExpiresByType text/javascript A2592000 ExpiresByType application/javascript A2592000 ExpiresByType application/x-javascript A2592000 ExpiresByType application/x-font-ttf A2592000 ExpiresByType application/x-font-woff A2592000 ExpiresByType application/font-woff A2592000 ExpiresByType application/font-woff2 A2592000 ExpiresByType application/vnd.ms-fontobject A2592000 ExpiresByType font/ttf A2592000 ExpiresByType font/woff A2592000 ExpiresByType font/woff2 A2592000 </IfModule> </FilesMatch> ### marker BROWSER CACHE end ### </IfModule> ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## # END LSCACHE # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off # First rewrite to HTTPS: # Don't put www. here. If it is already there it will be included, if not # the subsequent rule will catch it. RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # Now, rewrite any request to the wrong domain to use www. # [NC] is a case-insensitive match RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
Forum: Plugins
In reply to: [LiteSpeed Cache] Browser cache not workingMmm…I’ve solved the htaccess problem by adding
rewriteFile /usr/local/lsws/prestitiinpdap.it/html/.htaccess
in rewrite section. Now
X-LiteSpeed-Cache: hit
is correctly sent.The question now is:
Should I add
Header set Cache-Control "max-age=31536000, public"
to my files? Or is it suppesed to be handled by litespeed cache?Forum: Plugins
In reply to: [LiteSpeed Cache] Browser cache not workingI was digging in the documentation and just discoverede that openlitespeed does not support htaccess.
Is this correct?
If so, I should add all the htaccess content on rewrite section of admin panel?