Open roytanck opened 3 years ago
Commit 11503c828ca693a718bc5e322984a26e012eb5c3 adds support for WP Super Cache.
I've not been able to find similar hooks in W3 Total Cache or WP Rocket yet.
Edit: W3TC does have a hook called "w3tc_pagecache_set_header", but I can't find any documentation for it. Looks like it only works in one caching mode, and only for Apache. Might not be worth looking into.
See https://developer.wordpress.org/reference/hooks/wp_headers/#comment-254 .
Apparently, the wp_headers hook deoes not allow you to add headers when a 3rd party caching plugin is active. See if this can be resolved, and/or add info to the readme.