Download & Extend

Change .htaccess file supplied with Boost to rewrite HEAD requests to the static files as well

Project:Boost
Version:5.x-1.x-dev
Component:Apache integration
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Unless I'm missing something, it seems that Boost would play a lot better with caching upstream proxies if it was able to direct HEAD requests to the static files as well as get requests. This way, if a proxy is just trying to check to see whether it needs to refetch the resource cached by Boost, it doesn't hit Drupal instead, where it will get a session cookie and an Expires header from the 1970's....

The change is easy, and seems to be working fine on a high-load setup with a variety of proxies right now (thanks btw, boost is totally saving the day for us!)

Basically just change:

RewriteCond %{REQUEST_METHOD} ^GET$

to

RewriteCond %{REQUEST_METHOD} ^(GET|HEAD)$

in the three places it appears in the .htaccess file

Comments

#1

Version:5.x-1.0» 6.x-1.x-dev
Category:bug report» feature request
Status:active» needs review

Going through the 5.x queue looking for stuff; this seems like a good idea. Patch is for 6.x

AttachmentSize
boost-302099.patch 3.94 KB

#2

Version:6.x-1.x-dev» 5.x-1.x-dev
Status:needs review» active

committed

#3

Status:active» closed (fixed)

Closing all 5.x issues; will only reevaluate if someone steps up #454652: Looking for a co-maintainer - 5.x

Reason is 6.x has 10x as many users as 5.x; also last 5.x dev was over a year ago. The 5.x issue queue needs to go.

nobody click here