Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

AEMaaCS + local dispatcher: how to test caching?

Avatar

Level 9

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.

 

6 Replies

Avatar

Community Advisor

Hi @jayv25585659 

You would find a cache folder at root directory of dispatcher-sdk from where you are running those docker scripts.

Arun Patidar

AEM LinksLinkedIn

Avatar

Level 9

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

Avatar

Community Advisor

Hi @jayv25585659 

Then please check the dispatcher config to allow cache.

 

Can you also try using docker terminal to check the cache

arunpatidar_0-1759390463102.png

 

Arun Patidar

AEM LinksLinkedIn

Avatar

Level 9

can you please make the screenshot bigger? I cannot read it. 


Thanks!

Avatar

Community Advisor

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

https://experienceleague.adobe.com/en/docs/experience-manager-learn/cloud-service/debugging/debuggin... 

 

Arun Patidar

AEM LinksLinkedIn

Avatar

Level 9

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.