Real-Time Content and Re-Open Tracking Return to Gmail

Michael Nutt

|

March 9, 2014

[![Gmail image caching update](https://s3.amazonaws.com/movableink-blog/wp-content/uploads/2013/12/10202349/Gmail-logo200pxwide.png)](https://s3.amazonaws.com/movableink-blog/wp-content/uploads/2013/12/10202349/Gmail-logo200pxwide.png)Back in December, [Gmail made a major overhaul to the way it processes email](https://movableink.com/blog/back-to-the-future-gmail-turns-on-images-in-email "Back to the Future: Gmail Turns on Images in Email"). Images started being proxied through Gmail’s servers, which [changed the way that images are cached](https://movableink.com/blog/gmails-recent-image-handling-changes-the-impact-and-resolution "Gmail’s Recent Image Handling Changes"). As a result, images could now be immediately displayed to recipients (no more “click here to view images from this sender”), but at the same time, marketers lost the ability to track email re-opens and the ability to serve relevant, real-time content upon re-open was limited.What Happened at Gmail?-----------------------Image caching on the web and in email is controlled through headers, which are sent back with images. The header informs the web browser or email client how long and under which conditions the image should be re-used before making another request to the server. In its initial rollout in December, Gmail respected the caching headers sent from the original server, but always served images to the user with instructions to re-use the same image for 24 hours.Due to the 24-hour caching header, web browsers would see real-time content initially but not on subsequent re-opens until one day later. Since open tracking also relies on images, the initial opens registered properly but re-opens were cached and could not be tracked. There were some reported workarounds for re-open tracking, but they involved sending malformed data to the Gmail proxy and were not guaranteed to work.The Return of Real-Time Content and Re-Open Tracking----------------------------------------------------Last week, the Movable Ink team noticed that Gmail had begun deploying updates to address the issues caused by its 24-hour caching. The cache still exists, but it is now overridable if you pass a no-cache header (example below).HTTP 200 OKContent-Type: image/pngCache-Control: no-cache, max-age=0This means that re-open tracking now works as it did before December’s changes. In addition, these changes fix a long-standing issue of Gmail temporarily caching entire emails when navigating between emails in Gmail. When using Movable Ink, these updates mean that whenever you open an email in Gmail, you can be sure that you are seeing the most up-to-date, real-time content on every open and re-open.