Skip to content

Commit b77bb48

Browse files
authored
Update best-practices-frontend-deps.md
1 parent 7b85444 commit b77bb48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/best-practices-frontend-deps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ WordPress does little to prevent the collision of scripts. Short of defining dep
5151

5252
Plus at time of writing it's 2017 and React and Vue-based apps, use of JavaScript tools is becoming more prevalent. Some of these authors create a rollup file of dependencies and a rollup of their app. Even in an environment you control, you likely rely on some 3rd party plugins that load dependencies.
5353

54-
### Provide a version string for caching
54+
#### Provide a version string for caching
5555
We recommend tying product assets the version for the Theme or Plugin you're in. Having a condition that checks for local environments (i.e. check request string for ".test") and toggling between a production version and a rand(0,PHP_INT_MAX) is another good option.

0 commit comments

Comments
 (0)