1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-28 01:10:51 +01:00

add resource_version to avoid cache.

This commit is contained in:
fowr 2024-08-20 21:27:22 -03:00
parent 5ee48c5865
commit 13b587cf62
No known key found for this signature in database
GPG Key ID: 41DE01A5187B8438
3 changed files with 10 additions and 4 deletions

View File

@ -1 +1,7 @@
<?php
$config['db']['type'] = 'mysql';
$config['db']['server'] = 'localhost';
$config['db']['user'] = 'dev';
$config['db']['password'] = 'dev';
$config['db']['database'] = 'vichan';

View File

@ -1,4 +1,4 @@
<link rel="stylesheet" media="screen" href="{{ config.url_stylesheet }}">
<link rel="stylesheet" media="screen" href="{{ config.url_stylesheet }}?v={{ config.resource_version }}">
{% if config.url_favicon %}<link rel="shortcut icon" href="{{ config.url_favicon }}">{% endif %}
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
@ -12,9 +12,9 @@
var modRoot = "{{ config.root }}" + (inMod ? "mod.php?/" : "");
</script>
{% if not nojavascript %}
<script type="text/javascript" src="{{ config.url_javascript }}"></script>
<script type="text/javascript" src="{{ config.url_javascript }}?v={{ config.resource_version }}"></script>
{% if not config.additional_javascript_compile %}
{% for javascript in config.additional_javascript %}<script type="text/javascript" src="{{ config.additional_javascript_url }}{{ javascript }}"></script>{% endfor %}
{% for javascript in config.additional_javascript %}<script type="text/javascript" src="{{ config.additional_javascript_url }}{{ javascript }}?v={{ config.resource_version }}"></script>{% endfor %}
{% endif %}
{% if mod %}
<script type="text/javascript" src="/js/mod/mod_snippets.js"></script>

View File

@ -1,4 +1,4 @@
<script src='main.js'></script>
<script src='main.js?v={{ config.resource_version }}'></script>
<script src='js/jquery.min.js'></script>
<script src='js/mobile-style.js'></script>
<script src='js/strftime.min.js'></script>