Caching of css files workaround

29 views
Skip to first unread message

Mads Hartmann Jensen

unread,
Feb 2, 2011, 4:14:13 AM2/2/11
to lif...@googlegroups.com
Hey guys,

Does lift have a way to workaround browser caching of css files? I.e. when I deploy a new version of my application I don't want the users to use their cached version of the css instead of the new one.

I could manually append a version number to the css files but I would rather have Lift do it for me ;)

Thanks,
Mads Hartmann Jensen

Timothy Perrett

unread,
Feb 2, 2011, 4:58:55 AM2/2/11
to lif...@googlegroups.com
<lift:with-resource-id>
<script type="text/javascript" src="whatever.js">
</lift:with-resource-id>

Anything within the block has a per-deployment identifier added ensuring that your users dont get cached files. Arn't you reading my book mads? ;-) lol.

Cheers, Tim

Mads Hartmann Jensen

unread,
Feb 2, 2011, 5:04:49 AM2/2/11
to lif...@googlegroups.com
Duh, caught me red handed :D

I really should get around to reading it ;)

Thanks for the help,
Mads Hartmann

> --
> You received this message because you are subscribed to the Google Groups "Lift" group.
> To post to this group, send email to lif...@googlegroups.com.
> To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.

santhosh kumar

unread,
Feb 2, 2011, 5:06:55 AM2/2/11
to lif...@googlegroups.com
Hi,

Where can i get your book? Is there a free lift book that i can download somewhere?

--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.



--
Regards

Santhosh
9941497246
twitter: twitter.com/santhotech (@santhotech)

Mads Hartmann Jensen

unread,
Feb 2, 2011, 5:34:31 AM2/2/11
to lif...@googlegroups.com
Paid book:

Free books: 
Exploring lift is at: http://exploring.liftweb.net/

Mads Hartmann Jensen

unread,
Feb 2, 2011, 7:29:04 AM2/2/11
to lif...@googlegroups.com
Works like a charm. Thanks,

On Feb 2, 2011, at 10:58 AM, Timothy Perrett wrote:

Reply all
Reply to author
Forward
0 new messages