Universal Inspirational Quotes

FREEMIUM
(Ким) HealThruWords | Оновлено 13 giorni fa | Other
Популярність

8.4 / 10

Затримки

474ms

Рівень обслуговування

100%

Health Check

N/A

Повернутися до всіх обговорень

how to know the id

Rapid account: Jeremy Dotx
jeremy.dotx
9 anni fa

Hi, how to know the id of the quote? since if I’ll leave blank the id, it will not return random. Thanks.

Rapid account: Heal Thru Words
HealThruWords Commented 9 anni fa

Closing this ticket.

Rapid account: Heal Thru Words
HealThruWords Commented 9 anni fa

Hi Jeremy,

Did it work for you?

Rapid account: Heal Thru Words
HealThruWords Commented 9 anni fa

Mashape do not cache anything so It might come from the origin server.

I found a workaround by adding a random number to a parameter that will be ignored by the backend like this: https://healthruwords.p.mashape.com/v1/quotes/?n=22

where
n is a parameter that will be ignored
and 22 is a random number

This bypasses all the caches. We are currently upgrading the platform and hopefully this workaround will not be necessary anymore soon enough.

Let me know if that works for you.

Rapid account: Jeremy Dotx
jeremy.dotx Commented 9 anni fa

No, didn’t have that (X-Mashape-Version and X-Mashape-Proxy-Response) in the response header.

Rapid account: Heal Thru Words
HealThruWords Commented 9 anni fa

Do you receive this last header X-Mashape-Proxy-Response=true?

Headers sent as response

When consuming an API through Mashape, you will always receive the following headers appended to the response:

X-Mashape-Version
The current version of the proxy used by Mashape.

X-Mashape-Proxy-Response
Set to “true” when the response has beenentirelygenerated by Mashape and not by the API. You will see this header, for example, when the API is temporary down or when you use invalid Mashape credentials.

http://docs.mashape.com/headers#headers-request

Rapid account: Jeremy Dotx
jeremy.dotx Commented 9 anni fa

thanks. 😃

Rapid account: Heal Thru Words
HealThruWords Commented 9 anni fa

Ok, hang on to your hat 😃 and we will get Mashape’s answer to this issue. I haven’t see a way to bypass their cache so far.

Rapid account: Jeremy Dotx
jeremy.dotx Commented 9 anni fa

Hi, yes, did try curl on the terminal and also the rest-console plugin of chrome. still the return is not random.

Rapid account: Heal Thru Words
HealThruWords Commented 9 anni fa

Just a question meanwhile have you tried with cUrl on command line? Do you get the same result?

Rapid account: Heal Thru Words
HealThruWords Commented 9 anni fa

No worries. I believe there is a cache issue at Mashape.
Let me check with them and we get back to you.

Приєднуйтесь до обговорення — додайте повідомлення нижче:

Вхід / Реєстрація, щоб публікувати нові повідомлення