# Random Quote Machine API returns same quote

**URL:** <https://forum.freecodecamp.org/t/random-quote-machine-api-returns-same-quote/261425>\
**Category:** General\
**Created:** [February 26, 2019, 10:31am UTC](https://forum.freecodecamp.org/t/random-quote-machine-api-returns-same-quote/261425 "2019-02-26T10:31:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RAJKUMAR18](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/rajkumar18/32/159149_2.png) [@RAJKUMAR18](https://forum.freecodecamp.org/u/RAJKUMAR18)\
**Post date:** [February 26, 2019, 10:31am UTC](https://forum.freecodecamp.org/t/random-quote-machine-api-returns-same-quote/261425/1 "2019-02-26T10:31:56Z")

</div>

Hi,  
This is my pen [https://codepen.io/sakata\_gintoki/pen/bzPwyB](https://codepen.io/sakata_gintoki/pen/bzPwyB)  
I don’t know why but the API returns the same quote even after clicking the button many times.  
If i open a new tab and go to the same API url many times it gives me different quote each time.  
This is causing test#9 to fail.  
Please help.

---

<div class="post-metadata">

**Author:** ![camelcamper](https://avatars.discourse-cdn.com/v4/letter/c/f0a364/32.png) [@camelcamper](https://forum.freecodecamp.org/u/camelcamper)\
**Post date:** [February 26, 2019, 6:32pm UTC](https://forum.freecodecamp.org/t/random-quote-machine-api-returns-same-quote/261425/2 "2019-02-26T18:32:07Z")

</div>

your `get` request response is being cached.

you can turn it off with a property  
`cache: false`

> **[Ranom quote](https://codepen.io/anon/pen/jJEGoM?editors=0011)**
>
> ...

documentation in here, search that page for ‘cache’  
[http://api.jquery.com/jquery.ajax/](http://api.jquery.com/jquery.ajax/)

---

<div class="post-metadata">

**Author:** ![RAJKUMAR18](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/rajkumar18/32/159149_2.png) [@RAJKUMAR18](https://forum.freecodecamp.org/u/RAJKUMAR18)\
**Post date:** [February 27, 2019, 11:39am UTC](https://forum.freecodecamp.org/t/random-quote-machine-api-returns-same-quote/261425/3 "2019-02-27T11:39:23Z")

</div>

That solved the issue Thank you.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:04pm UTC](https://forum.freecodecamp.org/t/random-quote-machine-api-returns-same-quote/261425/4 "2021-01-17T20:04:45Z")

</div>

Closed on January 17, 2021, 8:04pm UTC


