RESTful-Drupal / restful

RESTful best practices for Drupal
https://drupal.org/project/restful
419 stars 173 forks source link

Language and Cache #1044

Open Daveiano opened 5 years ago

Daveiano commented 5 years ago

I have written a Node Resource in current 7.x-2.0 module. My content is available in two different languages, so I need to filter based on language.

If I disable the render cache, everything works fine. But with the cache enabled the first requested result gets delivered for every language on next calls.

Steps to reproduce:

Then both calls (http://xxx.localhost/en/restapi/v2.0/project and http://xxx.localhost/de/restapi/v2.0/project) return the same result with English from the cache.

Any hints for this?