Below the details to use the ETag feature from API - Backend Implementation.
Example :-
1) Request 1 Login and request a getSomethingService call . you
will recieve an Etag with value in the response header .
2) Copy the response header for the next request
3) Request 2 add "If-None-Match" request header attribute to service
request and put the saved value from request 1
4) if the response is same , you would get a 304 not
modified response code.
No comments:
Post a Comment