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

    (@emrevona)

    Do you wanna prevent cache for a page which includes a hidden that witch has the date in unixtimestamp?

    Thread Starter creremyahoo

    (@creremyahoo)

    Hello,
    this is the code
    <input type=”hidden” id=”security-login-topbar” name=”security-login-topbar” value=”<?php echo estate_create_onetime_nonce( ‘login_ajax_nonce_topbar’ );?>”>

    it contains a nonce based on unixtimestamp .

    How i can avoid caching the value for this input

    I have tried setting up the value via inline javascript but it still gets cached.

    Thanks

    Plugin Author Emre Vona

    (@emrevona)

    You want to exclude a part of a page?

    Thread Starter creremyahoo

    (@creremyahoo)

    That code is composed from a nounce + unixtimestamp and is used in validating a request. I don’t want to have it cached since it has a different value every time.
    How can i avoid that ?

    Plugin Author Emre Vona

    (@emrevona)

    now I got it. you can exclude the url via “exclude” tab.

    Thread Starter creremyahoo

    (@creremyahoo)

    Hi,
    I’m sorry but is not an url – is a html input field that has a different value on each page load.

    <input type=”hidden” id=”security-login-topbar” name=”security-login-topbar” value=”<?php echo estate_create_onetime_nonce( ‘login_ajax_nonce_topbar’ );?>”>

    Plugin Author Emre Vona

    (@emrevona)

    This is not possible.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘prevent caching a hidden input or an inline javascript code’ is closed to new replies.