• Hi, the content on our page is different based on the content of a cookie.

    The cookie is basically just a country code and each country the content of the page is different but the url must not change.

    We have rewritten your plugin so it adds these lines to the htaccess

    RewriteCond %{HTTP:Cookie} ^.vat_cc=([A-Z]{2,2}|0|).
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/all/$1/%1/index.html -f [or]

    And writes the cache to /cache/all/cookie/requesturl/index.html

    Could you please add such feature to your plugin so that anyone else who needs this can use it too and so we do not have to manually merge our changes into your plugin when it is updated?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Emre Vona

    (@emrevona)

    how do you set the cookie?

    Thread Starter Benedikt Ledl

    (@benniledl)

    The cookie is being set when a user clicks a button that sends a post request to a script that changes/sets the cookie.

    If there is no cookie set yet (new visitor) the path will result in

    “/wp-content/cache/all/index.html”

    This site is generated with a predefined standard value in the cookie.

    Plugin Author Emre Vona

    (@emrevona)

    It could be a nice feature but I can’t promise to add it.

    Thread Starter Benedikt Ledl

    (@benniledl)

    Thank you for considering this feature, do you know a rough estimate when you will know if this feature can be added and if when it will be added approximately.

    Plugin Author Emre Vona

    (@emrevona)

    never ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Generate Cache based on Cookie’ is closed to new replies.