|
|
|
|
|
by organsnyder
2899 days ago
|
|
For caching to work, you need to sit down—ideally with business stakeholders—and decide what the caching policy should be for each data element. For instance, in a healthcare domain, your core patient demographics—name, DOB, ethnicity, gender...—can likely have a fairly long TTL (perhaps even a day or more), since those attributes don't tend to change very often. However, something like a patient's list of upcoming appointments should have a very short TTL, since it changes more frequently. Once you've made those decisions from a business perspective, you can have your services send the HTTP headers to effect that caching behavior. |
|
You also probably should not let the browser cache it either (you’ll typically get dinged for it in pentests because your app may be used on a shared computer).