diff --git a/src/modules/cart/controllers/cart.controller.ts b/src/modules/cart/controllers/cart.controller.ts index 59ce4bf..7c99b04 100644 --- a/src/modules/cart/controllers/cart.controller.ts +++ b/src/modules/cart/controllers/cart.controller.ts @@ -1,4 +1,4 @@ -import { Controller, Get, Post, Body, Patch, Delete, UseGuards, Param } from '@nestjs/common'; +import { Controller, Get, Post, Body, Patch, Delete, UseGuards, Param, Header } from '@nestjs/common'; import { CartService } from '../providers/cart.service'; import { BulkAddItemsToCartDto } from '../dto/bulk-add-items.dto'; import { ApplyCouponDto } from '../dto/apply-coupon.dto'; @@ -17,6 +17,9 @@ export class CartController { constructor(private readonly cartService: CartService) {} @Get() + @Header('Cache-Control', 'no-store, no-cache, must-revalidate') + @Header('Pragma', 'no-cache') + @Header('Expires', '0') @ApiOperation({ summary: 'Get cart for current user and restaurant' }) @ApiHeader(API_HEADER_SLUG) async findOne(@UserId() userId: string, @RestId() restaurantId: string) {