Disable cache for 404 ONLY
Hello,
I have configured an ErrorDocument 404 /content/site/error/404.html; however, I have noticed that this content is being cached on the dispatcher server, for example, at /mnt/var/www/html/content/site/error/404.html. I need to prevent this as the URLs displayed in 404.html change based on cookies and the URL. What alternatives exist to avoid caching?
I have tried the code discussed on the following site, but in neither of the two cases, it has worked for me. Additionally, with 'Location,' it gives me an error when restarting the dispatcher
https://serverfault.com/questions/930180/disable-cache-for-404-only-in-apache-2-2
