nuster icon indicating copy to clipboard operation
nuster copied to clipboard

Confirm cache content

Open zabio3 opened this issue 6 years ago • 3 comments

I want to search cache content by url.

I am very interested in "nuster". (Especially, cache purging by regex : ) )

I am really sorry to have asked you so much.

zabio3 avatar Jun 08 '18 09:06 zabio3

Not at all, feel free to ask anything:)

What do you mean by search cache content by url ? can you give me an example?

jiangwenyuan avatar Jun 08 '18 10:06 jiangwenyuan

Thank you : )

Example

If you send a request to "nuster" in some way, the result of content like the following will be returned.

Sample Request

curl -X <confirm method> -H "Host: example.com" http://<nuster>/sample.index

Sample Response

[Object Info]
Status code:    200
Max-age:        86400
Last-Modified:  N/A
Expires:        Sat, 09 Jun 2018 05:20:43 GMT
Content-Length: 0(0)
Current date:   Fri, 08 Jun 2018 12:07:35 GMT
Current age:    24410
Last verify:    Fri, 08 Jun 2018 05:20:45 GMT
Next verify:    Sat, 09 Jun 2018 05:20:45 GMT

[Stored Header]
HTTP/1.1 200 OK
Server: openresty
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Vary: Accept-Encoding
X-Agent: Mozilla/5.0 (Unknown; Linux x86_64) AppleWebKit/538.1 (KHTML, like Gecko) PhantomJS/2.1.1 Safari/538.1
X-Device: @pc
Cache-Control: max-age=86400
Content-Encoding: gzip
Via: 1.1 google
Alt-Svc: clear

zabio3 avatar Jun 08 '18 12:06 zabio3

I see, interesting, thank you, I will see what I can do

jiangwenyuan avatar Jun 08 '18 12:06 jiangwenyuan