Jump to >

djblets.urls.patterns

never_cache_patterns(*args)[source]

Prevent any included URLs from being cached by the browser.

It’s sometimes desirable not to allow browser caching for a set of URLs. Any URLs passed in will have the never_cache() decorator applied.

Parameters:*args (tuple) –

The URL arguments to pass to the function.

If the first parameter is a prefix string for view lookup strings, then this will emit a deprecation warning, as these are no longer supported in Django 1.10 or higher.

Returns:A list of URL patterns.
Return type:list