Hi and welcome!

If you look at the source of the page in a browser, do you see the 
static_version inserted as a part of the path to your css? It should be 
something like /static/_1.1.4/css/somecssfile.css.

After a change to 1.1.5, the path should change to 
/static/_1.1.5/css/somecssfile.css.

Do you see this happen?

Regards


On Saturday, January 18, 2014 12:34:17 PM UTC+1, Sébastien Loix wrote:
>
> Hi,
> I'm new to web2py and just learning the framework.
>
> I have an issue with my CSS static file which is not reloaded by the 
> browser in local.
> I have read thread about versioning of static files but it doesn't seem to 
> solve the problem. Probably I don't it correctly.
>
> Here is the line set in my db.py model:
> response.static_version = '1.1.4'
>
> Then each time I make a change in my css, I upgrate the number. But then 
> even after 5 refresh of the page the old css is shown (I guess the cache).
> Is there a way to completely deactivate cache in production?
> Thank for any help!
> Regards,
> Sebastian
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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.

Reply via email to