3

I see from the REST API developer page on conditional requests that I can add the If-Unmodified-Since header so that "the request is processed only if the data hasn’t changed since the specified date."

First, does using this header actually reduce the number of requests serviced by Salesforce, as counted toward the daily transaction limit?

Second, can this be used when running reports so that the report is not run (and counted against the 500/hour report max) if the report content hasn't changed?

2

First, does using this header actually reduce the number of requests serviced by Salesforce, as counted toward the daily transaction limit?

No, you still get charged the API call. The purpose of those headers is to save bandwidth, not reduce API usage.

Second, can this be used when running reports so that the report is not run (and counted against the 500/hour report max) if the report content hasn't changed?

No. The headers tell you what's supported (e.g. describes), and that's all you get. Second, even if it was supported, the system would still need to query the database to calculate the hash to see if the report changed. Again, the purpose is to save bandwidth, not server-side resources.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.