Activity › Forums › Salesforce® Discussions › Why SOAP services are not cacheable in Salesforce?
Tagged: Application Cache, Org Cache, Platform Cache, Salesforce Development, Salesforce SOAP API, Session Cache, SOAP Callout, SOAP Envelope, SOAP Message, SOAP UI
-
Why SOAP services are not cacheable in Salesforce?
Posted by madhulika shah on July 9, 2018 at 1:57 PMWhy SOAP services are not cacheable in Salesforce?
shariq replied 7 years, 8 months ago 3 Members · 2 Replies -
2 Replies
-
Hi Madhulika,
SOAP services are not cacheable in Salesforce because SOAP when using HTTP as the transfer mechanism is sent via HTTP POST requests. As HTTP POST is non-idempotent, it is not cached at the HTTP level.
Thanks.
- [adinserter block='9']
-
Hi,
To add more –
REST does not prescribe any particular mechanism for how to encode request parameters in the URL. What is recommended is that clients never do any URL synthesis: let the server do all the URL creation (by whatever mechanism you want, such as embedding within the path or as query parameters). What you definitely shouldn’t do is have a GET where the client sends a body to the server! Any cache is likely to lose that. Instead, when that request doesn’t correspond to a simple fetch of some resource, you POST or PUT that complex document to the server and GET the result of the operation as a separate stage.
Hope it helps.
Log In to reply.