Rest API - Caching Strategies
A developer wrote this code snippet for handling validation-based caching:
What is the error in this code?
if request.headers['If-None-Match'] == resource.etag:
return Response(status=200)
else:
return Response(data=resource.data, status=200)What is the error in this code?
