ckan/ckan-packaging

Inefficient Cache

Opened this issue · 0 comments

Hi!

I've been using Nginx as cache with the configuration provided by default. However, I've found some annoying errors:

  1. The cache is only used when the user is not logged (the cookie auth_tkt is not defined). Otherwise the cache is not used, so I think that the cache policy is not very efficient.
  2. Requests that do not include the auth_tkt are cached. However, not all these request must be keep in the cache. For example:
    1. Create a private dataset within an organization and upload a file using the FileStore.
    2. Sing out
    3. Try to download the file with the link provided in the first step.
    4. You will be redirected to the main page since you do not have rights in that organization (That's OK!).
    5. Try to download the same file but including the API Key. You will get the main page since this page has been cached previously.

I do not know if this is the expected behaviour, but I think it's quite strange.