• Resolved Imageaelsharawi

    (@aelsharawi)


    Hi this is the header for my cache, why it is missed?
    Date: Sat, 06 May 2017 15:08:50 GMT
    Content-Type: text/html; charset=UTF-8
    Vary: Accept-Encoding
    Set-Cookie: wordpress_logged_in_numbersssssss0604750faa90; expires=Sat, 06-May-2017 16:08:50 GMT; Max-Age=3600
    X-VC-Enabled: true
    X-VC-TTL: 600
    X-VC-Debug: true
    Link: <https://domain/?p=8280&gt;; rel=shortlink
    Server: nginx
    X-Powered-By: nginx
    Content-Encoding: gzip
    X-VC-Cacheable: NO:Not cacheable, ttl: 0.000
    X-Varnish: 17
    Age: 0
    Via: 1.1 varnish (Varnish/5.1)
    X-VC-Cache: MISS
    X-VC-Hash: /url requested
    Connection: keep-alive

    ====

    also I cant get the statistics on the backend altough it I made and pointed the json file

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Imageaelsharawi

    (@aelsharawi)

    This is my basic modifications for woocomerce:
    #### woocomerce cookie
    # Unset Cookies except for WordPress admin and WooCommerce pages
    if (!(req.url ~ “(wp-login|wp-admin|cart|my-account/*|wc-api*|checkout|addons|logout|lost-password|product/*|courses/*)”)) {
    # set req.http.X-VC-Cacheable = “NO:dynamic logged in cookie”;
    unset req.http.cookie;
    }
    # don’t cache these special pages. Not needed, left here as example
    if (req.url ~ “courses/*|cart|my-account|checkout|addons|nocache|wp-admin|wp-(comments-post|login|activate|mail)\.php|bb-admin|server-status|control\.php|bb-login\.php|bb-reset-password\.php|register\.php”) {
    set req.http.X-VC-Cacheable = “NO:Special page: ” + req.url;
    return(pass);
    }

    ### another skip pages
    if ( req.url ~ “\?add-to-cart=” ) {
    set req.http.X-VC-Cacheable = “NO:Special page: ” + req.url;
    return (pass);
    }

    Thread Starter Imageaelsharawi

    (@aelsharawi)

    this is the curl command

    Set-Cookie: learn_press_user_guest_id=1494088783; expires=Sat, 06-May-2017 18:39:43 GMT; Max-Age=7200; path=/
    Set-Cookie: learn_press_user_guest_id=1494088783; expires=Sat, 06-May-2017 18:39:43 GMT; Max-Age=7200; path=/

    is that because of Set-Cookie: learn_press_user_guest_id=

    but my whole website is based on learnpress

    how to solve this?

    Plugin Author ImageRazvan Stanga

    (@razvanstanga)

    VCaching bypasses caching for logged in users.

    Plugin Author ImageRazvan Stanga

    (@razvanstanga)

    Closed.

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

The topic ‘cache miss’ is closed to new replies.