---
title: "Hergen Dillema (@Hergen) | Hashnode"
description: "Backend developer. Read the latest articles by Hergen Dillema on Hashnode."
url: "https://hashnode.com/@Hergen"
---

@Hergen

# Hergen Dillema

@Hergen · Joined February 2021

Backend developer

## Comments

[Congrats everyone and many thanks to Hashnode for the great support and free coffee! 😃](https://hashnode.com/posts/winners-of-buy-me-a-coffee-april-giveaway/60904eebcebc886374b85374/comment/609155748c38d5300e68a4a5)

Comment · Article · May 4, 2021 · [Winners of Buy Me A Coffee April Giveaway!](https://hashnode.com/posts/winners-of-buy-me-a-coffee-april-giveaway/60904eebcebc886374b85374)

[Hi Christian Widlund, if you wish to just use If-None-Match in your application in the easiest way possible, I would recommend using the cache control middleware bundled with Laravel. One small difference using our package is the support for HEAD requests, the Laravel middleware uses this condition: if (! $request->isMethodCacheable() || ! $response->getContent()) { return $response; } In which the first condition will check if the request is either a GET or HEAD request, but the second condition will return false for HEAD requests as they don't return content. The biggest difference however is simple the If-Match support. This is not included in the Laravel middleware at all. I suspect because it is almost impossible to make a "on size fits all" solution for If-Match, but our implementation should work for most common use cases. This package will also keep getting updated and if possible, more conditional requests might get added.](https://hashnode.com/posts/caching-your-laravel-api-with-etag-and-conditional-requests/60306105f51caf4448561656/comment/607160c41494367be6d29909#reply-6071ce4a8b2b857c0bdb5fe0)

Reply · Article · Apr 10, 2021 · [Caching your Laravel API with ETag and Conditional Requests](https://hashnode.com/posts/caching-your-laravel-api-with-etag-and-conditional-requests/60306105f51caf4448561656)

[As this blogpost purely describes the backend implementation it is therefor frontend agnostic. In theory you could use this in your backend for any front end you want. I would say caching mechanisms like this are especially valuable for mobile applications, where (especially in some countries) every bit of data might cost your user money if they use mobile data.](https://hashnode.com/posts/caching-your-laravel-api-with-etag-and-conditional-requests/60306105f51caf4448561656/comment/6059d8fc5771a2129446bbdf#reply-605b4bc978c4742436d4f87d)

Reply · Article · Mar 24, 2021 · [Caching your Laravel API with ETag and Conditional Requests](https://hashnode.com/posts/caching-your-laravel-api-with-etag-and-conditional-requests/60306105f51caf4448561656)
