# Aws Api-Gateway set cache to specific GET method?

**URL:** https://forum.serverless.com/t/aws-api-gateway-set-cache-to-specific-get-method/5225
**Category:** Serverless Framework
**Tags:** aws, lambda, api-gateway
**Created:** [July 25, 2018, 9:02am UTC](https://forum.serverless.com/t/aws-api-gateway-set-cache-to-specific-get-method/5225 "2018-07-25T09:02:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![maorkavod](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/maorkavod/32/3429_2.png) [@maorkavod](https://forum.serverless.com/u/maorkavod)
#### Post date: [July 25, 2018, 9:02am UTC](https://forum.serverless.com/t/aws-api-gateway-set-cache-to-specific-get-method/5225/1 "2018-07-25T09:02:31Z")

</div>

Hello,  
I build an API for web application, everything works just fine , but i want to set “cache” for specific GET method.  
It seems that i cant find any info regarding this issue in the documantation.  
how do i set the cache with query string parameters?

this is my function yaml :

```
getItems:
handler: handler.getItems 
events:
  - http:
      path: item/get
      method: get
      cors: true
      integration: lambda
name: ${self:service}-${self:provider.stage}-getItems 
description: get all latest items  
runtime: python3.6 
memorySize: 128 
timeout: 10 
reservedConcurrency: 5

```

thanks!
