I know you have a pending proposal. let's work on it for web2py 2.1
On Thursday, 30 August 2012 13:27:18 UTC-5, Niphlod wrote:
>
> Glad to see that anyone cares about that (cache busting). I'm working on
> that, but it has been posponed a few version away.
> Back to your problems: the first version should work ok. The second
> version is not "supported", because it becomes actually
>
> /myapp/static/css/main.css%3Fv%3D1208301
>
> the ? is escaped and the .css extension is not recognized, so it's not
> included.
>
> BTW: if possible, it's generally better to work with versioned folders
> e.g. /static/1.2.3/css instead of urls ending in ?something (this will be -
> hopefully - the behaviour of next web2py's versions).
> Referenced images in the css work ok with versioned folders, not with
> ?something urls.
>
> On Thursday, August 30, 2012 6:45:26 PM UTC+2, Yarin wrote:
>>
>> I'm trying to apply a version number to my CSS files as a way to force
>> browsers to load the latest version, but the following examples never get
>> outputted even though they create valid URLs:
>>
>> response.files.append(URL('static','css/main.css', vars=dict(v='1208301'
>> )))
>> or
>> response.files.append(URL('static','css/main.css?v=1208301'))
>>
>> Why won't these work? Is there a better web2py-way for forcing browser
>> cached files to reload?
>>
>
--