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
asked 4 months ago207 views
1 Answer
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
EXPERT
answered 4 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions