fix caching
This commit is contained in:
parent
9ebe832fea
commit
2be70fc0b0
2 changed files with 9 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
||||||
{% load static i18n compress%}<!DOCTYPE html>
|
{% load static i18n compress cache%}<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
@ -24,16 +24,16 @@
|
||||||
|
|
||||||
|
|
||||||
<!-- Your stuff: Third-party CSS libraries go here -->
|
<!-- Your stuff: Third-party CSS libraries go here -->
|
||||||
{% load cache %}
|
|
||||||
{% cache css %}
|
|
||||||
{% compress css %}
|
{% compress css %}
|
||||||
|
{% cache None css %}
|
||||||
<link href="{% static 'css/pygmentize.css' %}" rel="stylesheet">
|
<link href="{% static 'css/pygmentize.css' %}" rel="stylesheet">
|
||||||
<!-- This file stores project-specific CSS -->
|
<!-- This file stores project-specific CSS -->
|
||||||
|
|
||||||
<link type="text/x-scss" href="{% static 'sass/project.scss' %}" rel="stylesheet">
|
<link type="text/x-scss" href="{% static 'sass/project.scss' %}" rel="stylesheet">
|
||||||
|
{% endcache %}
|
||||||
|
|
||||||
{% endcompress %}
|
{% endcompress %}
|
||||||
{% endcache %}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -1,15 +1,16 @@
|
||||||
{% load static compress tz %}<!DOCTYPE html>
|
{% load static compress tz cache%}<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>{{ title }}</title>
|
<title>{{ title }}</title>
|
||||||
{% load cache %}
|
|
||||||
{% cache css %}
|
|
||||||
{% compress css %}
|
{% compress css %}
|
||||||
|
{% cache None css %}
|
||||||
<link type="text/x-scss" href="{% static 'sass/render.scss' %}" rel="stylesheet">
|
<link type="text/x-scss" href="{% static 'sass/render.scss' %}" rel="stylesheet">
|
||||||
<link href="{% static 'css/pygmentize.css' %}" rel="stylesheet">
|
<link href="{% static 'css/pygmentize.css' %}" rel="stylesheet">
|
||||||
{% endcompress %}
|
|
||||||
{% endcache %}
|
{% endcache %}
|
||||||
|
{% endcompress %}
|
||||||
|
|
||||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined" rel="stylesheet">
|
||||||
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro&display=swap" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue