List Info

Thread: Re: App for rendering and far future caching of css and js files




Re: App for rendering and far future caching of css and js files
user name
2007-12-22 18:03:44
On 11/11/2007, at 8:27 PM, Itai Tavor wrote:

> Hi all,
>
> I made one of them apps, like the subject says...
>
> From the README (which is as well as I can explain it,
if I could
> say it better I'd edit the README, right?):
>
> The app provides two main functions:
>
> 1. Render and serve css files based on django
templates.
>
>     To aid in generating css code, the context of
templates rendered
> by this app includes urls for accessing site media, as
well as
> developer-specified custom variables.
>
>     Css content is served with caching tags instructing
browsers to
> cache the files for one year, needed to make the link
tags generated
> by the app effective (see below).
>
> 2. Render <link> and <script> html tags
which allow browsers to cache
> the linked files to the far future, while forcing them
to load a new
> copy as soon as the file is modified.
>
>     Urls in generated tags include a query string which
is unique
> for the current file. any change to the file will cause
this string
> to change, making browsers download the new version
irrespectively of
> the cache settings of any previous copy they have
cached.
>
> The app is available at http://www.tavo
r.net/farstyle-0.1.tgz
>
> Hope it's useful for someone...
>
> Itai

This app is now hosted at Google Code: <http://code
.google.com/p/django-farstyle/ 
 >, and is now actually working, unlike the first version
I released  
much too early.

Itai

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )