can you explain more please? do you think that wp fastest cache adds trailing slash?
No.. WP Fastest Cache working normally.. But I Want add some function to remove trailing slash… I Know that this plugin can rewrite html code when minify html..
<meta property="og:type" content="website" />
to
<meta property="og:type" content="website">
you can modify the html source of cache by our hook system.
https://www.wpfastestcache.com/tutorial/buffer-callback-filter/
if you want, I can write the code for you.
-
This reply was modified 3 years ago by
Emre Vona.
Yes, Can you make the filter snippet for me.. I am newbie..
I dont know how to use it for removing trailing slash..
add_filter( 'wpfc_buffer_callback_filter', 'your_function_name', 10, 3);
function your_function_name($buffer, $extension, $cache_file_path){
// Your code
return $buffer;
}
Thanks @emrevona for making a great plugin..
I will write and let you know.
I wrote the code but you need to delete wp fastest cache and install the following version to get the latest changes because I had to modify the source code of wp fastest cache.
https://downloads.wp.xz.cn/plugin/wp-fastest-cache.zip
After the first step, you can start to use the code which solved the Trailing Slash on Void Elements warning.
PERFECT… It work like a charm.. Thanks @emrevona for your time.
Now, I have found no errors and warning in W3C Validator. Nice..
https://validator.w3.org/nu/?doc=https%3A%2F%2Fjasapasang.net%2F10-problem-pada-cctv-dan-cara-mengatasinya%2F
Thanks very much. So, I want next plugin update, It means I have to keep /inc/cache.php? Or is there another file to keep?
where did you add the code?