Pls clarify which one of the following is correct?
In the user's manual P.27, it is stated that:
// note: no starting ‘/’ in the virtual path
static char path[] = ”tools/counter.html”; // a ‘virtual’ path int expire = 0; // 0:never
But in the header file of gwan.h, it is stated that:
//create/update a cache entry ('file' MUST be imaginary if 'buf' is not NULL)
// cacheadd(argv, "/tool/counter", buf, 1024, ".json", 200, 60); // expire:60sec
// cacheadd(argv, "/archives/doc_1.pdf", 0, 0, 0, 200, 0); // never expire
// ('file' MUST exist if 'buf' is NULL)
Which one is correct, with starting "/" or not?