I would forget the versioned folder method and go with Matt Currys Asset
Plugin - turning on timestamp checking.  this way when you update any item
in the array of files past to html->css or (js to the javascript helper) a
new compressed single file is made in cjs & ccss. Matt has samples of the
.htaccess files you use with the helper.
- S


2009/6/21 AD7six <[email protected]>

>
>
>
> On Jun 21, 7:47 pm, AD7six <[email protected]> wrote:
> > On Jun 20, 3:20 pm, Rob <[email protected]> wrote:
> >
> > > I want to version my css/js files:
> > > /23/css/style.css routes to /css/style.css
> > > where 23 can be any number (specifically the current svn version id)
> >
> > > Is this possible? I've seen a lot of advanced routing to controllers,
> > > but I can't find anywhere to reroute to something in webroot.
> >
> > > Thanks in advance!
> >
> > what's wrong with /css/style.css?23 or similar.
> >
> > if you do what you've asked with (cake)php your making the requests
> > for your assets unnecessarly slow - and not in a trivial way.
> >
> > compare how long it takes to get your file with /css/
> > thisisinthewebroot.css and /css/thisisinvendorscss.css and /css/
> > Iroutedthistoacontrolleraction.css
> >
> > hth,
> >
> > AD
>
> Ps forgot to mention that you /could/ do it with a htaccess redirect
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to