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
demandé il y a 5 mois215 vues
1 réponse
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
répondu il y a 5 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions