Request Caching with RestSharp

581 views
Skip to first unread message

ma...@bsthomsen.com

unread,
Nov 15, 2015, 5:38:50 PM11/15/15
to RestSharp
Hi reaching out here because I seem to face some dfficulties with RestSharp and Reqeust caching.

What I'm trying to achieve is either having a If-None-Match or Last-Modified header sent with my request, however when setting the cachepolicy like this:

restClient.CachePolicy = new RequestCachePolicy(RequestCacheLevel.Default);

It sends along an If-Range header containing the ETag.

Does anyone have any experience with integrating the native RequestCache through RestSharp?

Best Regards
Bjorn
Reply all
Reply to author
Forward
0 new messages