• Resolved jan.mazanek

    (@janmazanek)


    Hi, do I understand correctly from https://tools.keycdn.com/curl outpus, that URLs that are not in W3TC page cache do return HTTP Link header pushing CSS/JS, BUT cached URLs do not receive that HTTP header?

    Is there some way how to insert the HTTP push header into .htaccess?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @janmazanek,

    Thank you for your inquiry and I am happy to answer.
    The push headers should be in the .htaccess file in the cache directory, so they should be there in the cached pages too

    Thread Starter jan.mazanek

    (@janmazanek)

    Hello @vmarko,

    thank you for your answer. I have checked these folders:
    * /wp-content/cache/ – no .htaccess file is there (even after I have added for group the rights to write to directory
    * /wp-content/cache/page_enhanced/.htaccess contains:

    # BEGIN W3TC Page Cache cache
    AddDefaultCharset UTF-8
    <IfModule mod_headers.c>
        Header set Pragma "public"
        Header set Cache-Control "max-age=3600, public"
    </IfModule>
    # END W3TC Page Cache cache

    In which .htaccess file should be the push headers? Could you please paste here the code of it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘HTTP2 push with cached pages?’ is closed to new replies.