diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-19 09:09:02 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-19 09:09:02 +0700 |
| commit | 61afbe62fb03b94263d2e94b2b4b8ada7e60b6f7 (patch) | |
| tree | de35b99cdf934efd2e371b2ef48351559c4ed9eb /indoteknik_api/controllers/api_v1/product.py | |
| parent | 78f8aeafd40befa56c96f2892012a4a822684265 (diff) | |
| parent | 34baf6dc9d7031fdfa196446ef4274fff03d0abc (diff) | |
Merge branch 'cr/minor-fix' into production
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() |
