• robhob

    (@robhob)


    I am working on AEO for the site dukeofbedford.co.za and have included Link response headers for agent discovery (RFC 8288) in the .htaccess (also tried doing it in functions.php). If I run a check using isitagentready.com, it tells me the site isn’t returning Link response headers for agent discovery. If I disable the plugin, it then works or if I add https://dukeofbedford.co.za/ to the “Never Cache URL(s)” then it also works. How do I get around this without disabling caching on the homepage?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter robhob

    (@robhob)

    By disabling the plugin, I mean the Breeze plugin.

    Plugin Author owaisalam

    (@owaisalam)

    Thank you for reporting this and for your patience.

    We’ve identified the issue and implemented a fix. To resolve it on your end, please update the code in execute-cache.php (around line 662) with the following:

    $sent_headers = array();
    foreach ( $datas['headers'] as $data ) {
    $lower_name = strtolower( $data['name'] );
    $replace = ! isset( $sent_headers[ $lower_name ] );
    header( $data['name'] . ': ' . $data['value'], $replace );
    $sent_headers[ $lower_name ] = true;
    }

    This ensures that response headers (including Link headers for agent discovery as per RFC 8288) are handled correctly without duplication issues.

    We will also include this fix in an upcoming plugin release so you won’t need to apply it manually in the future.

    Please let us know if you need any further assistance or if the issue persists after applying the fix.

    Thread Starter robhob

    (@robhob)

    Thanks for coming back to me.

    I’ve added the code to execute-cache.php but unfortunately, it’s still failing on that test. I’ve cleared the cache in case that matters but that didn’t help.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.