How to make opera mini not cache css?

324 Views Asked by At

Iphone 5, IOS 7.1, opera mini accepts changes only on first load, i.e. on consequent ones it just ingores any change (css, js, html). In order to see the change I just remove it and install it again and it shows the actual change. WTF? Im aware of the way opera mini transfers its html to its servers and sends back a solid image but this type of behaviour is a overkill. Any suggestions?

2

There are 2 best solutions below

1
Amit Joki On

Use some script to find if it is opera mini and append a random number to stylesheet link

<link rel="stylesheet" href="styles.css?r=234234234324234"></link>

The above makes opera mini not cache the css

0
Amos M. Carpenter On

Try entering the following in the URL field (without http:// or anything):

server:refresh

There are a whole bunch more useful shortcuts worth learning, especially for devs.