Viewing 11 replies - 1 through 11 (of 11 total)
  • wpmansour

    (@wpmansour)

    To set up Expires headers using the “Static file cache” tab in WP-Optimize, follow these steps:

    1. Enable Page Caching:
      • Go to your WordPress Admin Panel.
      • Navigate to WP-Optimize > Cache.
      • Enable caching if it is not already enabled.
    2. Configure Static File Cache:
      • Click on the “Static file cache” tab.
      • Enable the option to serve static files.
      • Set the time for which these files should be cached by setting the “Expires headers”. By default, this might be set to 28 days, but you can adjust it as needed.
    3. Save Settings:
      • Ensure all your changes are saved by clicking the save button.

    This will configure Expires headers for your static files, ensuring that they are cached properly to improve site performance.

    Thread Starter arkboy106

    (@arkboy106)

    Thank you! Is there an optimal number of days for the “Browser static file caching settings?”

    Thread Starter arkboy106

    (@arkboy106)

    Does it take so long to go into effect? I just ran the SEO Optimizer on Rank Math, and it still shows that being a problem.

    wpmansour

    (@wpmansour)

    The default is 28 days, but you can adjust this based on how often your static assets change. For Apache servers, changes should take effect right away. If SEO tools still show issues, make sure all caches, including CDN, are cleared.

    Thread Starter arkboy106

    (@arkboy106)

    Sorry, I’m still learning. How do I do that? Break Math told me to stop using CDN.

    wpmansour

    (@wpmansour)

    No worries, Here are the steps to change the Expires headers in WP-Optimize:

    1. Go to your WordPress Admin Panel.
    2. Navigate to WP-Optimize > Cache.
    3. Click on the “Static file cache” tab.
    4. Enable the option to serve static files.
    5. Set the time for which these files should be cached by adjusting the “Expires headers” setting.
    6. Save the settings.

    For clearing the cache in Rank Math, follow this document: Clear Rank Math Cache. If you need more help, feel free to ask!

    Thread Starter arkboy106

    (@arkboy106)

    I’m using Breakdance. Does that change anything?

    Thread Starter arkboy106

    (@arkboy106)

    I do not see a “Static file cache” tab. I see a “Static file headers” tab. But when I click on that, it only gives me the option to change the expiration time.

    It also says: “The .htaccess file already contains browser static caching settings, but browser caching is not functioning as expected. This indicates that your webserver does not support .htaccess browser caching rules. To further investigate this, you must contact your web hosting provider.”

    wpmansour

    (@wpmansour)

    It looks like Breakdance has an issue with clearing the post cache after editing. I recommend reaching out to Breakdance support for fixes to improve compatibility.

    Yes, you’re on the right track! The “Static file headers” tab is where you can change the expiration time. If you’re seeing a message about your webserver not supporting .htaccess browser caching rules, you’ll need to contact your hosting provider for support.

    • This reply was modified 9 months ago by wpmansour.
    Thread Starter arkboy106

    (@arkboy106)

    Where on there do I clear the cache?

    Plugin Support vupdraft

    (@vupdraft)

    You can clear the cache in Cache >>Page Cache >> Purge the cache

    https://snipboard.io/b0Vih6.jpg

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Headers Expires’ is closed to new replies.