It seems that Boost is caching the webform id's and doesn't submit the form. I'm using https://www.drupal.org/project/webform_ajax

I'm using the latest version of boost. The boost is indeed working, but all my forms are broken. Also for some reason it seems to be causing my forms in my admin pages to not work aswell even though I set the boost restriction to only the page.

Comments

duckx created an issue. See original summary.

vensires’s picture

Also happening for me with both Boost 7.x-1.1 and Boost-7.x-1.x-dev.

In case it matters, the status code returned by the server is 404 even though the page is displayed (not correct).
I tried uncommenting the RewriteBase / line in .htaccess but nothing changed.

I also made sure the line endings of .htaccess are LF, as stated in https://www.drupal.org/node/1459690 but nothing happened once again.

My server's version of Apache is lower than 2.4. What seems to work is the .htaccess code generated from Boost 7.x-1.0 (along with the Boost 7.x-1.0 module of course):

### BOOST START ###

# Allow for alt paths to be set via htaccess rules; allows for cached variants (future mobile support)
RewriteRule .* - [E=boostpath:normal]

# Caching for anonymous users
# Skip boost IF not get request OR uri has wrong dir OR cookie is set OR request came from this server OR https request
RewriteCond %{REQUEST_METHOD} !^(GET|HEAD)$ [OR]
RewriteCond %{REQUEST_URI} (^/(admin|cache|misc|modules|sites|system|openid|themes|node/add|comment/reply))|(/(edit|user|user/(login|password|register))$) [OR]
RewriteCond %{HTTPS} on [OR]
RewriteCond %{HTTP_COOKIE} DRUPAL_UID [OR]
RewriteCond %{ENV:REDIRECT_STATUS} 200
RewriteRule .* - [S=3]

# GZIP
RewriteCond %{HTTP:Accept-encoding} !gzip
RewriteRule .* - [S=1]
RewriteCond %{DOCUMENT_ROOT}/cache/%{ENV:boostpath}/%{HTTP_HOST}%{REQUEST_URI}_%{QUERY_STRING}\.html\.gz -s
RewriteRule .* cache/%{ENV:boostpath}/%{HTTP_HOST}%{REQUEST_URI}_%{QUERY_STRING}\.html\.gz [L,T=text/html,E=no-gzip:1]

# NORMAL
RewriteCond %{DOCUMENT_ROOT}/cache/%{ENV:boostpath}/%{HTTP_HOST}%{REQUEST_URI}_%{QUERY_STRING}\.html -s
RewriteRule .* cache/%{ENV:boostpath}/%{HTTP_HOST}%{REQUEST_URI}_%{QUERY_STRING}\.html [L,T=text/html]

### BOOST END ###
vensires’s picture