Hi, do you know of any examples of parsing parameters in header field values that you can suggest to me? e.g. matching charset=UTF-8 in "Content-Type: ...; charset=UTF-8" or rel=duplicate in "Link: <...>; rel=duplicate"

Also can you suggest any examples of checking if a given URL already exists in the cache or not?

I am attempting a plugin [1] to take advantage of Metalink [2] to redirect clients to mirrors that already exist in the cache. I am trying to loop over RFC 6249 "Link: <...>; rel=duplicate" headers and check if the URL already exists in the cache

[1] https://github.com/jablko/dedup
[2] http://metalinker.org/

Reply via email to