James is developing a portlet and wants to share the cache entry across all users upon certain
conditions. What is a valid way to accomplish his goal?
A.
Add the conditions in the doView method and set the cache scope to public in the request.
B.
Add the conditions in the doview method and set the cache scope to public in the response.
C.
Add the conditions in the doHeade rs method and set the cache scope to public in the request.
D.
Add the conditions in the doHeaders method and set the cache scope to public in the
response.