Uninett/nav

Improve docs about javascript caching in hackers guide

Aberta

#3.418 aberto em 8 de ago. de 2025

 (0 comentário) (0 reação) (0 responsável)Python (48 forks)auto 404
documentationhelp wanted

Métricas do repositório

Stars
 (224 estrelas)
Métricas de merge de PR
 (Mesclagem média 18d 18h) (6 fundiu PRs em 30d)

Description

Ref: https://nav.readthedocs.io/en/latest/hacking/javascript.html#avoiding-caching

Creating python/nav/web/static/js/require_config.dev.js and adding require.urlArgs = "bust=" + (new Date()).getTime(); should not be necessary as long as Django debug is activated and caching is disabled for NAV in the browser.

I haven't had any problems with caching when developing. Comment here if you rely on adding require.urlArgs = "bust=" + (new Date()).getTime();.

Guia do colaborador