• Resolved jimiswells

    (@jimiswells)


    I have an ACF frontend form at this example dynamic url –

    https://example.com/edit-form/?post=927

    This is being used to edit posts submitted by another frontend ACF post creation form.

    Is there any way of excluding these dynamic urls from being cached? On some browsers people are seeing a cached version of the form without the most recent changes in the fields…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Brian Lewis

    (@borisnikolaevich)

    I was just looking at this setting in response to a different support question!

    In WP Admin under the SG Optimizer settings section, the first tab is SuperCacher Settings. I scrolled to the bottom of the section and found “Excluding URLs” that should do exactly what you need. If it’s just this page with the dynamic form, you don’t need any wildcards or anything … just enter edit-form/?post=927 in the box and hit Exclude.

    Now your visitors should get the latest dynamically-generated form every time they load the page.

    Thread Starter jimiswells

    (@jimiswells)

    Aha thank you! Unfortunately those URL’s are dynamic/change depending on the ID of the post being edited so I can’t just add a list of them…. If you have any ideas on this they’d be much appreciated!

    Plugin Author Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    You can exclude custom post types from the first tab of the plugin. If that doesn’t work, you can simply add a

    Cache-Control "max-age=0,no-store"

    header to the pages you don’t want to be cached.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Exclude dynamic URL’s from cache’ is closed to new replies.