mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-01 10:50:37 +02:00
minify.[css|js] cached by the browser #212
This commit is contained in:
@@ -137,12 +137,7 @@ class Javascript
|
|||||||
* javascriptVersionIncrement
|
* javascriptVersionIncrement
|
||||||
*/
|
*/
|
||||||
public static function javascriptVersionIncrement() {
|
public static function javascriptVersionIncrement() {
|
||||||
if (Option::exists('javascript_version')) {
|
Option::update('javascript_version', (int) Option::get('javascript_version') + 1);
|
||||||
Option::update('javascript_version', (int) Option::get('javascript_version') + 1);
|
|
||||||
} else {
|
|
||||||
Option::add('javascript_version', 1);
|
|
||||||
Option::update('javascript_version', (int) Option::get('javascript_version') + 1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -153,12 +153,7 @@ class Stylesheet
|
|||||||
* stylesVersionIncrement
|
* stylesVersionIncrement
|
||||||
*/
|
*/
|
||||||
public static function stylesVersionIncrement() {
|
public static function stylesVersionIncrement() {
|
||||||
if (Option::exists('styles_version')) {
|
Option::update('styles_version', (int) Option::get('styles_version') + 1);
|
||||||
Option::update('styles_version', (int) Option::get('styles_version') + 1);
|
|
||||||
} else {
|
|
||||||
Option::add('styles_version', 1);
|
|
||||||
Option::update('styles_version', (int) Option::get('styles_version') + 1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user