Previous Page Next Page

Exercises

1.Use the caching low-level API to modify the index() view function in the iFriends/People/views.py file to use the PersonList key to store and retrieve the current list of Person objects from the cache. That way, the home_view() and index() functions can access the same list from the cache.
2.Use the cache_control() decorator function to add directives to the Cache-Control headers in the response of a view function.
3.Use the vary_on_headers() decorator function to add headers to the Vary header in the response of a view function.

Previous Page Next Page