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">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
@ -24,16 +24,16 @@
|
|||
|
||||
|
||||
<!-- Your stuff: Third-party CSS libraries go here -->
|
||||
{% load cache %}
|
||||
{% cache css %}
|
||||
|
||||
{% compress css %}
|
||||
{% cache None css %}
|
||||
<link href="{% static 'css/pygmentize.css' %}" rel="stylesheet">
|
||||
<!-- This file stores project-specific CSS -->
|
||||
|
||||
<link type="text/x-scss" href="{% static 'sass/project.scss' %}" rel="stylesheet">
|
||||
{% endcache %}
|
||||
|
||||
{% endcompress %}
|
||||
{% endcache %}
|
||||
{% endblock %}
|
||||
|
||||
</head>
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
{% load static compress tz %}<!DOCTYPE html>
|
||||
{% load static compress tz cache%}<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{{ title }}</title>
|
||||
{% load cache %}
|
||||
{% cache css %}
|
||||
|
||||
{% compress css %}
|
||||
{% cache None css %}
|
||||
<link type="text/x-scss" href="{% static 'sass/render.scss' %}" rel="stylesheet">
|
||||
<link href="{% static 'css/pygmentize.css' %}" rel="stylesheet">
|
||||
{% endcompress %}
|
||||
{% endcache %}
|
||||
{% endcompress %}
|
||||
|
||||
<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">
|
||||
</head>
|
||||
|
|
Loading…
Reference in a new issue