I have this VCL here https://pastebin.com/RPJvAqZ1 but the varnish Hits are not showing for the JS/CSS

see the headers in the drobpox folder at the bottom (*)

it is a classic/woocomerce/WordPress vcl

I just added:

if (req.http.cookie ~ "learn_press_user_guest_id") {
    return(hash);
  }

and to the has section I added

sub vcl_hash {

hash_data(req.url);

if (req.http.host) {
hash_data(req.http.host);
} else {
hash_data(server.ip);
}


if (req.http.Cookie) {
hash_data(req.http.Cookie);
}



}

The learnpress cookie is a cookie set for the guest users, so that I had to make that hash, am I right here?

do I have to make one for PHPSESSID?

this is my stats in the dropbox folder (*)

(*) dropbox folder
https://www.dropbox.com/sh/lmjkzy0n40vkotq/AAB7p_PK-jaeUsf3cbdasi-Wa?dl=0

please help me.

Read more here: why the HIT header are not shown on JS/CSS


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: