• Resolved b-cat

    (@b-cat)


    How can we enable IQ Block Country (IQBC) to tell caching plugins to NOT CACHE html rendered by IQBC when visited by a blocked country?

    In addition to IQBC, I’m also using a standard WP caching plugin called “WP Super Cache.” In fact, use of a caching plugin like this is required by my site hosting provider.

    Now, unfortunately, whenever someone visits my site from a blocked country, the blocked page html that is rendered via IQBC is cached by the caching plugin, and that blocked page html (usually an “Error: 404” message) is then delivered to ALL subsequent visitors to that page, even if they are coming from an UN-blocked country!

    Not good!

    My understanding is that plugins that impact page rendering (like IQBC) should be able to provide a “do not cache” header or instruction of some kind that would instruct caching plugins to not cache that html.

    I have looked all through the IQBC settings and I can find no option to enable “Do Not Cache.” Am I missing something?

    Please help!

    https://ww.wp.xz.cn/plugins/iq-block-country/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Pascal

    (@iqpascal)

    Yes you are missing something 😉

    The plugin already sends out do not cache headers when an user is blocked. That is not a configurable option.

    It’s up to the caching solution to respect those headers (or as many do don’t respect it).

    From the FAQ section:

    Does this plugin work with caching?

    In some circumstances: No

    The plugin does it best to prevent caching of the “You are blocked” message. However most caching software can be forced to cache anyway. You may or may not be able to control the behavior of the caching method.

    The plugin does it bests to avoid caching but under circumstances the message does get cached. Either change the behavior of your caching software or disable the plugin.

    Thread Starter b-cat

    (@b-cat)

    That’s good to hear! Thanks for that info.

    I will convey this info to the WP Super Cache support forum and see if they can enable the plugin to respect IQBC’s “do not cache” instruction.

    Thanks.

    Thread Starter b-cat

    (@b-cat)

    Here’s an update / follow-up…

    WP Super Cache (WPSC) does not yet seem to be able to read and respect IQBC’s “Do Not Cache” headers, but I have discovered that WPSC has it’s own “Do Not Cache Secret Key,” which is a unique random key code assigned to each installation of that plugin.

    Is there a way that I can add that secret key code to IQBC’s configuration files so the secret key will be provided in the headers and maybe then WPSC will respect the “do not cache” instruction?

    Any suggestions?

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

The topic ‘How to Set "Do Not Cache" Option’ is closed to new replies.