Does Parse.com support the use of etags
and if-none-match
for Conditional GETs? I'm working with a third party API that requires this as a must, to limit API calls to their server. Im using Cloud Code as my backend sending data to a Cordova/ionic hybrid app.
Thanks
In 2014, Parse released a report detailing their support of over 500,000 applications. On January 28, 2016 Facebook announced that it would shut Parse down with all services ceasing operation on January 28, 2017.
An entity tag, or ETag, is a mechanism that is provided by the HTTP protocol so that a browser client or a script can make conditional REST requests for optimistic updating or optimized retrieval of entities.
Approach C: caching the ETag. This is like approach B but ETag is stored in some cache middleware.
Yes depending on your definition of support. You have the ability to set arbitrary headers on the request which is all that is required. However, it appears that you will need to either store the values yourself somewhere in Parse, or simply use fixed values you believe to be incorrect. You can retrieve etag values from the response headers. The RFC can guide you to the correct values. Note that Cloud Code on the open sourced Parse Server appears to provide increased access to the underlying JS interpreter rather than being sandboxed so you can access other mechanisms that may be more friendly than Parse's own HTTP object.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With