well, in theory the regex should match /app/static/file.css AND /app/static/_1.2.3/file.css basically stripping the /_1.2.3 part That slash should kick in differently, I agree. Just tested.... can you try *^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*)*
? On Friday, May 31, 2013 8:51:46 PM UTC+2, Andriy wrote: > > Ok, it looks like a typo in > web2py.com/books/default/chapter/29/04#Static-asset-management ? I`ve > made a simple script to look what this pattern actually matching, and found > that its not matching version string at all. By trial and error I found > unnecessary Slash after *^/([^/]+)/static/(?:* > This does not match version string: > *^/([^/]+)/static/(?:/_[\d]+.[\d]+.[\d]+)?(.*)* > This does: > *^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+)?(.*)* > > Restarted Apache with this change and response.static_version works OK. I > hope its ok to use it without this Slash, because I`m actually not sure > what it supposed to do... > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

