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
專家
已回答 4 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南