PHPackages                             rocketweb/cache-warmer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. rocketweb/cache-warmer

ActiveLibrary[Caching](/categories/caching)

rocketweb/cache-warmer
======================

Cache Warmer with a Pre-fetch option to validate Fastly Cache response

v1.4(1y ago)1161[1 issues](https://github.com/rocketweb/cache-warmer/issues)MITPHPPHP &gt;=8.1

Since Jul 28Pushed 1y agoCompare

[ Source](https://github.com/rocketweb/cache-warmer)[ Packagist](https://packagist.org/packages/rocketweb/cache-warmer)[ RSS](/packages/rocketweb-cache-warmer/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (5)Used By (0)

Cache Warmer (for Fastly CDN)
=============================

[](#cache-warmer-for-fastly-cdn)

Info
----

[](#info)

This library allows for faster Cache Warmup when dealing with CDN (Fastly CDN &amp; Cloudflare supported so far). It uses HEAD request to check for Cache status. If Cache Status is not a HIT, then full page load is executed which is then parsed for css/js/img elements and all those get requested also!

It supports smart caching, so you are not requesting the same Page/Element over and over again!

Installation &amp; Usage
------------------------

[](#installation--usage)

This library can be installed using composer:

```
composer require rocketweb/cache-warmer

```

Once installed, you can load it up using standard PSR-4 call. Example code:

```
