Deep chat produces dynamic page cache to be UNCACHEABLE
## Problem Given I am an anonymous user, when I access to a page with a chatbot created with deepchat through ai_chatbot module, the response headers indicate that dynamic page cache is not cacheable. ## Steps to reproduce * Install ai and ai_chatbot. * Add a block with ai_chatbot and any assistant. * Go to the page where that block is configured. * With browser developer tools or CURL you can see that dynamic page cache header becomes UNCACHEABLE. ## Proposed solution The problem is that the deepchat block form is using the user cache context which is too wide. That cache context nullifies dynamic cache. Cache per user is added at [blockAccess](https://git.drupalcode.org/project/ai/-/blob/2.x/modules/ai_chatbot/src/Plugin/Block/DeepChatFormBlock.php?ref_type=heads#L539) so that the access takes in account user role. A valid alternative would be using the user.roles cache context. That would change the access based on user role. ## Related issues #3586388
issue