diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-16 11:19:07 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-16 11:19:07 +0700 |
| commit | 34baf6dc9d7031fdfa196446ef4274fff03d0abc (patch) | |
| tree | f8e4fc3bf65e280df9c0b8e80982f0f9828c162c /indoteknik_api/controllers/api_v1/product.py | |
| parent | eefe129e31b112d80038fc3aecf2aee4c4e10108 (diff) | |
Fix cart API
Diffstat (limited to 'indoteknik_api/controllers/api_v1/product.py')
| -rw-r--r-- | indoteknik_api/controllers/api_v1/product.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_api/controllers/api_v1/product.py b/indoteknik_api/controllers/api_v1/product.py index 0c8a286b..1b698f26 100644 --- a/indoteknik_api/controllers/api_v1/product.py +++ b/indoteknik_api/controllers/api_v1/product.py @@ -32,7 +32,7 @@ class Product(controller.Controller): category = category.parent_frontend_id categories.reverse() - return self.response(categories) + return self.response(categories, headers=[('Cache-Control', 'max-age=3600, public')]) @http.route(prefix + 'product_variant/<id>/stock', auth='public', methods=['GET', 'OPTIONS']) @controller.Controller.must_authorized() |
