johnidm / tramsdaol

0 stars 1 forks source link

Implement Django cache #1

Open johnidm opened 7 years ago

johnidm commented 7 years ago

Change the cache strategy to django.core.cache.cache

johnidm commented 7 years ago

http://dustinfarris.com/2012/06/08/cache-timeout-default-in-django.html

johnidm commented 7 years ago

To complement the cache you can use ETag header.

https://chibisov.github.io/drf-extensions/docs/#http-etag http://stackoverflow.com/questions/9009633/using-etag-for-optimistic-locking-in-a-django-rest-application https://www.willmcgugan.com/blog/tech/post/etag-magic-with-django/ http://stackoverflow.com/questions/34460089/can-somebody-explain-me-what-is-the-use-of-etag-in-django http://www.apiacademy.co/how-to-http-caching-for-restful-hypermedia-apis/

Keyword to find - ETag in RESTFull API

johnidm commented 7 years ago

Django has a middleware called that support ETags