Uninett/nav

Improve docs about javascript caching in hackers guide

Open

#3,418 opened on Aug 8, 2025

 (0 comments) (0 reactions) (0 assignees)Python (48 forks)auto 404
documentationhelp wanted

Repository metrics

Stars
 (224 stars)
PR merge metrics
 (PR metrics pending)

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();.

Contributor guide