• Resolved Lian

    (@lianthangtial)


    Hi Ruter and WordPress lovers, thanks for the awesome plugin. Unfortunately, I do not know how to leverage browser caching for this.

    I added the following code in my .htaccess file, but I still get warning on GTmetrix. Please help me out.

    ## EXPIRES CACHING ##
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType application/x-font-woff “access plus 1 month”
    ExpiresByType application/x-font-woff2 “access plus 1 month”
    ExpiresByType application/vnd.ms-fontobject “access plus 1 month”
    ExpiresByType application/manifest+json “access plus 1 week”
    ExpiresByType application/x-web-app-manifest+json “access plus 0 seconds”
    ExpiresByType text/cache-manifest “access plus 0 seconds”
    ExpiresDefault “access 2 days”
    </IfModule>
    ## EXPIRES CACHING ##

    Thank you in advance

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Lian

    (@lianthangtial)

    Hi guys, I really need help.
    Thank you

    • This reply was modified 4 years ago by Lian.
    Plugin Author Weston Ruter

    (@westonruter)

    I don’t think caching at the Apache level is correct. The web app manifest is served by WordPress, thus you’d need WordPress “page” caching, specifically for REST API responses. So something like WP REST Cache (beware I have not used this before), or even just a generic page caching plugin should include REST API.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can Not Leverage Browser Caching for wp-json/wp/v2/web-app-manifest’ is closed to new replies.