PHPackages                             modera/mjr-cache-aware-class-loader - 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. modera/mjr-cache-aware-class-loader

ActiveSymfony-bundle

modera/mjr-cache-aware-class-loader
===================================

v5.0.0(1y ago)04.0kMITPHPPHP &gt;=7.4

Since Jul 22Pushed 1y ago5 watchersCompare

[ Source](https://github.com/modera/ModeraMJRCacheAwareClassLoaderBundle)[ Packagist](https://packagist.org/packages/modera/mjr-cache-aware-class-loader)[ RSS](/packages/modera-mjr-cache-aware-class-loader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (20)Used By (0)

ModeraMJRCacheAwareClassLoaderBundle
====================================

[](#moderamjrcacheawareclassloaderbundle)

This bundles enables browser caching mechanism for MJR application, so once page is loaded then all scripts will be permanently cached in client's browser and further page loads will not require any pre-cached scripts to be loaded again. Shortly speaking, this is how this bundle works - it adjusts Ext.Loader class that is used to dynamically load your scripts so it would append so called `version` number and when bundle is configured it will be suffixing all loaded script files with that version and in conjunction with properly configured web-server ( apache/nginx instructions provided ) next time page is loaded pre-cached scripts will be used.

Installation
------------

[](#installation)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

```
composer require modera/mjr-cache-aware-class-loader:5.x-dev
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md) of the Composer documentation.

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

This bundle should be automatically enabled by [Flex](https://symfony.com/doc/current/setup/flex.html). In case you don't use Flex, you'll need to manually enable the bundle by adding the following line in the `config/bundles.php` file of your project:

```
