hbz / lobid

Linking Open Bibliographic Data
https://lobid.org/
Eclipse Public License 2.0
16 stars 4 forks source link

Play cache for json format has different keys #356

Closed dr0i closed 3 years ago

dr0i commented 6 years ago

Depending on how to lookup the resource (.../resources/ID vs. .../resources/ID.json ) a different cache key is generated although the provided result for resources without an explicit format (aka format=null) is the same json.

Example: show(HT018903884,json(.+)?) show(HT018903884,json)

This has two drawbacks:

  1. there are not one but two cached identically objects different caches for the same object.
  2. it may be that the cache of the one resource differs from the other (experienced this with the dateModified).

    I think it's better to have just one cached object. What do you think @fsteeg ?

acka47 commented 3 years ago

Closing