Download the PHP package grimlink/magento-bfcache-patches without Composer

On this page you can find all versions of the php package grimlink/magento-bfcache-patches. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package magento-bfcache-patches

Magento 2 BFCache Patches

This repository provides a collection of patches to enable and optimize Back/Forward Cache (BFCache) support in Magento 2. These patches are based on the work from Magento 2 PR #40750.

Why?

By default, Magento 2 prevents browsers from caching storefront pages in the Back/Forward Cache by sending Cache-Control: no-store headers. This means that every time a user clicks the "Back" or "Forward" button, the browser must re-fetch the page from the server and re-execute all JavaScript, leading to slower navigation and a less responsive experience.

BFCache allows the browser to save a complete snapshot of the page (including the JavaScript state) in memory. When a user navigates back, the page is restored instantly.

These patches improve Magento 2 by:

How to Install

These patches work with any Composer-based patch tool, including cweagans/composer-patches and vaimo/composer-patches. Choose the option that fits your setup.

Option 1: Git Clone (Recommended)

Clone this repository into a patches directory in your Magento root, move the patches.json to the root, and apply the patches:

Option 2: Curl or Wget

Download and extract the patches, move the configuration file, and apply the changes:

Using Curl:

Using Wget:

Merging with Existing patches.json

If you already have a patches.json file in your project root, do not overwrite it. Instead, copy the entries from this repository's patches.json into your existing file and run the following commands to update your lock file and apply the new patches:

Option 3: Composer Require (vaimo/composer-patches)

If you are using vaimo/composer-patches with package patch sources enabled, you can install this package directly via Composer and vaimo will pick up and apply the patches automatically.

[!WARNING] This method requires vaimo/composer-patches with package-level patch sources enabled. See the vaimo/composer-patches documentation for the required configuration. If you are using cweagans/composer-patches, use Option 1 instead.

Option 4: Using the "Mage" Repository

If you are using the GrimLink/mage distribution or its tools, there is a built-in option to add this patch set automatically.

License

These patches are licensed under the same terms as Magento 2 (OSL-3.0 / Apache-2.0).


All versions of magento-bfcache-patches with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package grimlink/magento-bfcache-patches contains the following files

Loading the files please wait ...