Skip to content

easel/django_cachebust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 

Repository files navigation

django_cachebust

A simple Django app to handle cache busting for locally served static assets. This app makes it possible to deliver non-expiring assets for performance in compliance with best practices such as https://developers.google.com/speed/docs/best-practices/caching

To use this, an apache configuration like this should work:

<VirtualHost *:80>
    ServerName static.mydomain.com
    ServerAlias static

    ExpiresActive On
    ExpiresDefault "access plus 1 year"
    RewriteEngine On
    RewriteRule (.*)-cb\d+\.(.*)$ $1.$2 [L]

    DocumentRoot /var/www/html
</VirtualHost>
Other Resources:

About

Simple django cachebusting middleware

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages