Skip to content

Cache - help or insights #301

@jrsarath

Description

@jrsarath

So i been running few tests with serverless-http
In aws I'm using API Gateway v1 - Rest api with lambda
now when i enable caching on API Gateway, it behaves really weirdly
So for instance, here are two paths:

  1. base_path/api/categories
  2. base_path/api/categories/category_id

so without caching all is well, working as expected
but when i enable cache, this happens

  1. base_path/api/categories -> returns categories list
  2. base_path/api/categories/category_id -> returns category
  3. base_path/api/categories -> returns the category which was requested on earlier stage

sometimes its even vice-versa

So im not sure where to go from here, TTL is set to 300
api gateway config is
/categories/{proxy+} -> ANY -> Lambda + serverless-http

any kind of guidance, insights will be helpfull

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions