rest webservices stateless and allow cache

gudii9 used Ask the Experts™
i was reading below link

what it mean  by

rest web services stateless and allow caching
how stateless allows to cache webservice responses?
how caching is related to statelessness of http?
please advise
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Hi gudii9,

HTTP is a stateless protocol but still we can maintain state by some techniques such as cookies, URL rewriting and hidden forms. See this link

Once you have the state then you can provide caching also.
Imagine a request made by a client for some service, the first time you do the processing needed to send the response but the next time you can skip that processing by maintaining a cache (provide the response still remains same).

Let me know if this clarifies your question or if you need any more clarification.

Closing due to inactivity

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial