Venkat Raj
Forum Replies Created
-
@tom-pijnenburg You can enable Minify, visit the front end (the page which has lightbox feature). Then in the backend you can just
excludethe problem causing script/wp-includes/js/dist/interactivity.min.js
Please refer to this screenshot https://prnt.sc/h75AO5EhVT5C
As mentioned this will be fixed in the next release@ov3rfly This has been fixed in release
3.2.20Hi @pms67
Thanks for reporting this. However, I tried updating today at it works fine? Only the trailing...in the URL you posted causes404error
Besides, there are update happening for others. Please check this page
https://wordpress.org/plugins/wp-optimize/advanced/
and see the no. of downloads Today / Yesterday.
Let us know, if you still face issues@ads97129 Could you please provide a screenshot of Media Library and Uncompressed images screen?
It is possible that prior to 2022/11, you have used another image compression plugin/service?@jakebradley2001 You could use the following code
add_action( 'acf/save_post', function( $post_id ) { error_log( 'ACF action triggered' ); if ( function_exists( 'WP_Optimize' ) ) { error_log( 'Function exists, clearing cache' ); WP_Optimize()->get_page_cache()->purge(); } else { error_log( 'Didnt find the function' ); } });Solved in version 3.2.17
@eugene212 It only happens with Colibri page builder. So, I setup a site to test this. Created two pages using Colibri builder. It is true that it seems like identical assets are created, however if you compare the contents of the assets, you can see the difference.
Further digging into that, Colibri adds different inline styles for different pages with same handle. So, since the content is different, WP-Optimize creates separate set for each page.
https://ibb.co/mG8YYDW
https://ibb.co/ZmFpTfp
https://plugins.trac.wordpress.org/browser/colibri-page-builder/trunk/extend-builder/assets.php#L352@eugene212 We create a hash based on enqueued assets on a particular page, and use it to create a minified/combined asset name. On subsequent pages, new asset will be created only if the hash it different (i.e. different assets are enqueued).
So, could you please write down the exact steps to reproduce the issue? Thanks!@janardhanjp At this moment there is no option to remove that single line. To implement this, could you please let us know which
robots.txtanalyzer throws error? Thanks@jaredatcanvas Please provide more information to understand the issue.
1. Have you purged the62 GBwpo-minify files and folders?
2. Does only WP-Optimize pages are blank or all plugin pages?
3. Provide your php error log details
Considering the timeout and 524 errors you are getting this seems to be a server issue@janardhanjp It is not possible to remove single line. You can remove all the lines added by WP-Optimize by adding following code in your theme’s
functions.phpfileadd_action('after_setup_theme', 'ab123_remove_robots_txt_entry'); function ab123_remove_robots_txt_entry() { if (function_exists('WP_Optimize')) { remove_filter('robots_txt', array(WP_Optimize(), 'robots_txt'), 99, 1); } }- This reply was modified 2 years, 9 months ago by Venkat Raj.
- This reply was modified 2 years, 9 months ago by Venkat Raj.
Hello Alexander,
Here is logged in version of the same steps.
https://drive.google.com/file/d/1mKcxfLJQnDZrKC8P5NEjasd_vtLgIr3X/view?usp=drive_linkIt is also from Apache 2.4 as you can see in screencast.
Minify only overwrite the value on static assets, doesn’t send separate headers
https://plugins.trac.wordpress.org/browser/wp-optimize/tags/3.2.16/minify/class-wp-optimize-minify-front-end.php#L2115
Since this seems to be a specific environment issue, I’m afraid I couldn’t help much.
I agree with one thing that If an URL is excluded then browser cache shouldn’t send caching headers for that page. I’ve added this to our to do list.Hi @forcesail
I followed the same steps you’ve demonstrated in your video and I couldn’t able to reproduce the issue. Please watch the video and let me know where I went wrong.
https://drive.google.com/file/d/1aVvGK1ovDPvN9eUd1ueROrYr_j0HdAZv/view?usp=drive_link
In my testing, there is nocache-controlheader by default in WordPress. As per the apache documentation
https://httpd.apache.org/docs/2.4/mod/mod_headers.html#headerOnly using
addcauses 2 or more headers with the same name. Whereas WP-O usessetin its.htaccessrules.
If this is browser specific or server specific (i.e. specific version of module header, rewrite) then I’m afraid I couldn’t do much to help you.
You could disable browser caching in WP-Optimize and setup your own rules in your server to solve the issue?@forcesail I was unable to reproduce the two
cache-controlheaders issue. Here is what I done.
When a user is logged in, the header cache-control: no-cache, must-revalidate, max-age=0 comes from WP core
When WP-O is active and cache is off, but the browser cache is enabled,Dashboard => WP-Optimize => Cache => Static file headersit adds cache-control: private, must-revalidate from.htaccessfile which you can avoid by disabling browser caching.
But still I can’t reproduce the double header issue. I tested in Chrome Version 114.0.5735.90 (Official Build) (64-bit) on Linux desktop@webprom By same server, do you mean same hosting or actually same server with same Apache and PHP configurations?