So it seems like response.files has a problem with appended vars? Even when 
I spell out the URL entirely, it never gets output:

response.files.append("/css/main.css?v=123") # Doesn't get output
response.files.append("/css/main.css") # Does get output

Assuming this is why rocha used html. Can we fix this at least?

Niphlod- Cache-busting- cool, this is what we need. The folder-versioning 
is annoying to do manually for incremental updates, but if web2py could 
automate it would be slick. Per that implementation, let's have it as an 
adjustable setting (e.g. css_version_num) instead of completely randomized 
per rocha's solution- cache is useful, we just want to bust it when we have 
an update to roll (probably obvious)



On Thursday, August 30, 2012 2:50:26 PM UTC-4, rochacbruno wrote:
>
>
> I cant understand how versioned folders would help on this case? I ran on 
> to this issue a long time ago and I ended using pure html for this.
>
> <script src="{{=URL('static', 'js', 
> args='mylib.js')}}?{{=get_random_number()}}">
>
> This works for me when I need to bypass the cache to get the proper js 
> loaded on the client.
>

-- 



Reply via email to