---
title: "Extended"
manual: "Static File Cache"
version: "16.2"
source: "Extended/Index.rst"
rendered: "2026-10-12T19:46:25+00:00"
---

# Extended {#extended}

## Events {#events}

There are several Events to extend the functionality of EXT:staticfilecache. The following list contains all events and a short description of the execution.

-   `SFCStaticfilecacheEventBuildClientEvent` Executed in the client build process to modify options of the HTTP client for the boost mode queue.
-   `SFCStaticfilecacheEventBuildIdentifierEvent` Executed in the identifier build process to control the target path of the cache entry.
-   `SFCStaticfilecacheEventCacheRuleEvent` Executed in the PrepareMiddleware to check if the current page is static cacheable.
-   `SFCStaticfilecacheEventCacheRuleFallbackEvent` Executed in the FallbackMiddleware to check if the current page is delivered via FallbackMiddleware.
-   `SFCStaticfilecacheEventForceStaticFileCacheEvent` Executed in the ForceStaticCacheListener to force the generation of static file cache files.
-   `SFCStaticfilecacheEventGeneratorConfigManipulationEvent` Executed in the ConfigGenerator do modify the stored data.
-   `SFCStaticfilecacheEventGeneratorContentManipulationEvent` Executed from all content related Generator to modify the content in front of the storage.
-   `SFCStaticfilecacheEventGeneratorCreate` Executed to trigger the Generators to store static files.
-   `SFCStaticfilecacheEventGeneratorRemove` Executed to trigger the Generators to remove static files.
-   `SFCStaticfilecacheEventHttpPushHeaderEvent` Executed in the HttpPushService to handle different types of push handlers.
-   `SFCStaticfilecacheEventPreGenerateEvent` Executed in the GenerateMiddleware in front of the business logic of the middleware.

## Middleware {#middleware}

The EXT:staticfilecache uses middlewares to implement the logic of the cache into the core. These middlewares are easily to extend/replace. The following list describe the different middlewares:

-   `SFCStaticfilecacheMiddlewareCookieCheckMiddleware` Check if there is a frontend cookie and invalid user session. Then remove the cookie.
-   `SFCStaticfilecacheMiddlewareFallbackMiddleware` Handle the fallback, if there is a static file but no redirect via nginx/htaccess.
-   `SFCStaticfilecacheMiddlewareFrontendUserMiddleware` Handle the user session in the right way.
-   `SFCStaticfilecacheMiddlewareGenerateMiddleware` Write the content into the StaticFileCache structure.
-   `SFCStaticfilecacheMiddlewarePrepareMiddleware` Check if the content is cacheable in the StaticFileCache structure.
