Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 482fda5

Browse filesBrowse files
committed
Minor rewords and fixes
1 parent f038483 commit 482fda5
Copy full SHA for 482fda5

File tree

1 file changed

+9
-8
lines changed
Filter options

1 file changed

+9
-8
lines changed

‎frontend/custom_version_strategy.rst

Copy file name to clipboardExpand all lines: frontend/custom_version_strategy.rst
+9-8Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,17 @@ How to Use a Custom Version Strategy for Assets
88
The Asset component was introduced in Symfony 2.7.
99

1010
Asset versioning is a technique that improves the performance of web
11-
applications by adding a version identifier to the URL of your static assets
12-
(CSS, JavaScript, images, etc.) When the content of the asset changes, the
13-
identifier changes and the browser is forced to download it again instead of
14-
using the cached version.
11+
applications by adding a version identifier to the URL of the static assets
12+
(CSS, JavaScript, images, etc.) When the content of the asset changes, its
13+
identifier is also modified to force the browser download it again instead of
14+
reusing the cached asset.
1515

16-
Symfony supports the basic asset versioning thanks to the
16+
Symfony supports asset versioning thanks to the
1717
:ref:`version <reference-framework-assets-version>` and
1818
:ref:`version_format <reference-framework-assets-version-format>` configuration
19-
options. If your application requires a more advanced versioning, you can create
20-
your own version strategy.
19+
options. If your application requires a more advanced versioning, such as
20+
generating the version dynamically based on some external information, you can
21+
create your own version strategy.
2122

2223
Creating your Own Asset Version Strategy
2324
----------------------------------------
@@ -39,7 +40,7 @@ Implement VersionStrategyInterface
3940
Asset version strategies are PHP classes that implement the
4041
:class:`Symfony\\Component\\Asset\\VersionStrategy\\VersionStrategyInterface`.
4142
In this example, the constructor of the class takes as arguments the path to
42-
the manifest file generated by gulp-buster and the format of the generated
43+
the manifest file generated by `gulp-buster`_ and the format of the generated
4344
version string::
4445

4546
// src/AppBundle/Asset/VersionStrategy/GulpBusterVersionStrategy.php

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.