contentful.java
contentful.java copied to clipboard
com.contentful.java.cda.CDAEntry#contentType returns incorrect content type due to stale cache
The client contains an internal cache of content types. This cache becomes stale if the content model is changed, with the result that the com.contentful.java.cda.CDAEntry#contentType method returns an incorrect content type that doesn't align with com.contentful.java.cda.LocalizedResource#rawFields .
It seems like the cache should include the revision of the content type in the cache key.