Universal Inspirational Quotes

FREEMIUM
От HealThruWords | Обновлено לפני 22 ימים | Other
Популярность

8.3 / 10

Задержка

505ms

Уровень обслуживания

100%

Health Check

N/A

Назад ко всем обсуждениям

how to know the id

Rapid account: Jeremy Dotx
jeremy.dotx
לפני 9 שנים

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 שנים

Closing this ticket.

Rapid account: Heal Thru Words
HealThruWords Commented לפני 9 שנים

Hi Jeremy,

Did it work for you?

Rapid account: Heal Thru Words
HealThruWords Commented לפני 9 שנים

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 שנים

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 שנים

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 שנים

thanks. 😃

Rapid account: Heal Thru Words
HealThruWords Commented לפני 9 שנים

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 שנים

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 שנים

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 שנים

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

Присоединяйтесь к обсуждению – добавьте комментарий ниже:

Войдите / Зарегистрируйтесь, чтобы публиковать новые комментарии