Distribution caching issue with a Wordpress plugin

0

I'm using Year Make Model Search for WooCommerce plugin in the WordPress website running on Lightsail. I wanted to disable the cache of my distribution connected to the WordPress instance. Therefore I have currently set it to the "Cache Nothing" setting.

This plugin frontend form sends a request to /wp-content/plugins/ymm-search/ymm_ajax.php to retrieve the models for a given Make. The following is an example.

/wp-content/plugins/ymm-search/ymm_ajax.php?action=ymm_selector_fetch&cId=0&values%5B%5D=Volkswagen

This throws 500 error with X-Cache: Error from cloudfront

However, the same request works without any error in my local environment.

Can you please let me know how to fix this?

samw
質問済み 5ヶ月前215ビュー
1回答
0

Hello.

Are requests reaching Lightsail from your distribution?
If the request is reaching Lightsail, there may be a problem on the Lightsail side.
You say that caching is disabled in your distribution, but does the response header include an "Age header"?
If the "Age header" is included, the error response may be cached in the distribution.
https://repost.aws/knowledge-center/cloudfront-custom-object-caching

profile picture
エキスパート
回答済み 5ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ