Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Any recommendations/guidelines in terms of how to deal with caching?

0
Posted

Any recommendations/guidelines in terms of how to deal with caching?

0

Currently, client-side caching is supported via the “conditions” property of Call. See the Conditions class for details. So, the first recommendation is to ensure that you correctly set all the representation metadata for your own representations (modification date, expiration date, tag). That will ensure that the server-side negotiation logic (used via the Response.setEntity(Resource, Language) method) works optimally. Then, writing a generic server-side cache is a different story. The recommendation would be to follow the REST style and HTTP specification spirit as closely as possible. For full-featured caching, you should look at popular projects like Squid: http://www.squid-cache.org/ or Apache caching modules. These caches can be installed transparently for the clients, as reverse proxies.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123