The browser will cache static files, so you need to do a hard refresh in 
the browser to force it to reload changed static files. A better option is 
to use some kind of static versioning -- web2py includes some built-in 
functionality for 
that: 
http://web2py.com/books/default/chapter/29/04/the-core#Static-asset-management.

Anthony

On Saturday, August 25, 2018 at 10:37:34 AM UTC-4, Mohammad Rostami wrote:
>
> hi. I connected a CSS file to the layout.html with the following code.
>
> <link rel="stylesheet" href="{{=URL('static','css/mystyle.css')}}"/>
>
>
> And then I put all of the CSS files defined in that way.
>
> <link rel="stylesheet" href="
> https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css
> "/>
> <link rel="stylesheet" href="{{=URL('static','css/bootstrap.min.css')}}"/>
> <link rel="stylesheet" 
> href="{{=URL('static','css/web2py-bootstrap4.css')}}"/>
> <link rel="stylesheet" href="{{=URL('static','css/mystyle.css')}}"/>
> <link rel="shortcut icon" href="{{=URL('static','images/favicon.ico')}}" 
> type="image/x-icon">
> <link rel="apple-touch-icon" 
> href="{{=URL('static','images/favicon.png')}}">
>
>
>
> Now, when I put a code in the CSS file, it works for the first time, like 
> the code below.
>
> body {
>     direction: rtl;
> }
>
>
>
> For the first time I refresh the page, this code works, But if I remove 
> the code or change the code, then no changes will occur on the site.
>
>
> Software version:
>
> 2.17.1-stable+timestamp.2018.08.06.01.02.56
> (Running on Apache/2.4.18 (Ubuntu), Python 2.7.12)
>
>
> And my site is connected to ClaudFlare
>
>
> Thanks for the guidance
>
>
>

-- 
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/d/optout.

Reply via email to