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=0
Is 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.
Views
Replies
Total Likes
You would find a cache folder at root directory of dispatcher-sdk from where you are running those docker scripts.
I saw that and the folder contains no files
# pwd
/home/myuser/Documents/aem-sdk-2025.1.19149.20250116T154450Z-241100/dispatcher-sdk-2.0.235
# find cache -type f | wc -l
0
Views
Replies
Total Likes
Then please check the dispatcher config to allow cache.
Can you also try using docker terminal to check the cache
can you please make the screenshot bigger? I cannot read it.
Thanks!
Views
Replies
Total Likes
unfortunately I don't have setup anymore, I copied from below article.
https://medium.com/@arunpatidar26/aemaacs-setup-guide-71e6f5d206ff
You can access files within docker like logs or cache using below
I think on your article, it says to check /mnt/var/www/html. I checked that earlier and it's coming up as empty on mine running docker.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies