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

    (@isaumya)

    If you enable the “Add browser Cache Rule” option inside the plugin settings > cache tab
    it will add that for the static files cache-control header.

    Thread Starter joeblack1975

    (@joeblack1975)

    Thank you very much Saumya.

    I took your advice and manually hard-coded the Cache Control headers for dynamic pages.

    Hopefully, this will protect my site from future outages.

    Thanks again!

    # Header always set Cache-Control “expr=%{resp:x-wp-cf-super-cache-cache-control}” “expr=resp(‘x-wp-cf-super-cache-cache-control’) != ””

    Header always set Cache-Control “s-maxage=31536000, max-age=600, stale-while-revalidate=86400, stale-if-error=604800”

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Avoid brolen pages with “stale-if-error” header’ is closed to new replies.