Tuesday, 19 June 2018

Etag Implementation for Web Api - Caching


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

AWS Certificate Manager - Import Certificate

How to import a certificate. Use Key Store Explorer to open the cert and export keypair in PEM format  This will save a file cert.pem. Make ...