I have a problem about changing the main page
, I use Tornado
, and in Tornado, there is a special value which is generated everytime the server is reached, it is a token to avoid xsrf attack
, but when I use .appcache
file, the problem is that it caches everything! and I only show to cache static
like css, js, fonts
, here is what it contains:
CACHE MANIFEST
# v = 2
/static/css/meteo.css
/static/css/semantic.min.css
/static/js/jquery-2.1.1.min.js
/static/css/main.css
/static/js/semantic.min.js
/static/js/geo.js
/static/js/meteo.js
/static/fonts/icons.woff2
/static/fonts/icons.woff
/static/fonts/WeatherIcons-Regular.woff
NETWORK:
/
FALLBACK:
It doesent work, the /
get cached!
So how to do this with new Framework, where it we dont make the html
file in the route, but the uri
that is bound to a function/class?
Here is a video I made about it
Aucun commentaire:
Enregistrer un commentaire