AEMaaCS + local dispatcher: how to test caching?
TLDR: I'm trying to investigate query param caching (example: /archive.html?page=xxx&year=yyyy) in my local dispatcher and I'm not sure how to test for it.
-----------
1.
If I visit https://www.myhost.com/content/myapp/sg/en/faq.html, I'm pretty sure an HTML file is created in the dispatcher filesystem (maybe in /var/www/html).
If I visit http://localhost:8080/content/myapp/sg/en/faq.html, where can I find the HTML file for this page?
I tried this command (after running docker exec) but it only found the default Apache HTTPD index.html. Any ideas? Thanks
54177f4f6b8b:/# find / -iname "*.html" -type f 2>/dev/null
/var/www/localhost/htdocs/index.html--------
2. I am trying to test Cache-Control but no matter what value I set, it seems the value is always the same. ("public,max-age=60,s-maxage=300,stale-while-revalidate=86400,stale-if-error=86400")
As a test I tried this
Header set Cache-Control max-age=0Is this normal behavior?
------
EDIT1: I tried both docker_run_hot_reload.sh and docker_run.sh to start the dispatcher. It does not make a difference.
EDIT2: I saw the cache folder inside /dispatcher-sdk-2.0.235 and it contains no files. I made sure the cache folder is writable by everyone by running chmod -R 777 cache.