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?

1 Risposta
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
ESPERTO
con risposta 5 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande