Only first instance of Adaptive Forms is cached
When the Adaptive Form URL does not contain any localization information, and the Use Browser Locale option in configuration manager is enabled, a localized version of the Adaptive Form is served and an instance of the Adaptive Form, based on the first request (browser locale requested), is cached and delivered to every subsequent user.
Perform the following steps to resolve the issue:
- Open your Experience Manager project.
- Open the
dispatcher/scr/conf.d/rewrites/rewrite.rules
for editing. - Open the
conf.d/httpd-dispatcher.conf
or any other configuration file configured to load at runtime. - Add the following code to your file and save it. It is a sample code modify it to suit your environment.
# Handle actual URL convention (just pass through)
RewriteRule "^/content/forms/af/(.*)[.](.*).html$" "/content/forms/af/$1.$2.html" [PT]
# Handle selector-based redirection based on browser language
<VirtualHost *:80>
# Handle actual URL convention (just pass through)
RewriteRule "^/content/forms/af/(.*)[.](.*).html$" "/content/forms/af/$1.$2.html" [PT]
# Handle selector based redirection basded on browser language
# The Rewrite Condition is looking for the Accept-Language header and if found takes the first two characters which most likely are the desired language selector.
RewriteCond %{HTTP:Accept-Language} ^(..).*$ [NC]
RewriteRule "^/content/forms/af/(.*).html$" "/content/forms/af/$1.%1.html" [R]
RewriteRule "^/content/forms/af/(.*).html$" "/content/forms/af/$1.%1.html" [R]