Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confirm cache content #18

Open
zabio3 opened this issue Jun 8, 2018 · 3 comments
Open

Confirm cache content #18

zabio3 opened this issue Jun 8, 2018 · 3 comments

Comments

@zabio3
Copy link

zabio3 commented Jun 8, 2018

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.

@jiangwenyuan
Copy link
Owner

Not at all, feel free to ask anything:)

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

@zabio3
Copy link
Author

zabio3 commented Jun 8, 2018

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

@jiangwenyuan
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants