• Drupal CMS Developer
  • Website speed optimisation
  • Drupal 6 to Drupal 8 migrations


Welcome, I am a Web Developer based in Madrid, Spain originally from the UK. I studied Computer Science & eBusiness at Loughborough University. I specialise in Content Management System websites

Varnish multiple domains but images shared

Ever had a Drupal multisite where the images are all stored in the same folder and shared for all sites? Ever installed varnish and noticed how much RAM gets used by photos? Well I did, and realised that I had 5 copies of every image, one for every domain. Easy thing to fix this:

  if ( !~ "^maindomain\.com" && req.url ~ "my/images/folder") {
    set = "";