*

BabyDunk

  • ****
  • 161 posts
Force clear browser cache
« on: June 20, 2016, 05:38:30 AM »
Hi Frosticek

i have been doing alot of changes with combining css  and need to force clear browser cache. would this method work ?

Code: [Select]
osc_enqueue_style('style', osc_current_web_theme_url('style.css?ver=1.1'));
osc_enqueue_style('tabs', osc_current_web_theme_url('tabs.css?ver=1.1'));
osc_enqueue_style('fancy', osc_current_web_theme_js_url('fancybox/jquery.fancybox.css?ver=1.1'));
osc_enqueue_style('responsive', osc_current_web_theme_url('responsive.css?ver=1.1'));

do you know if this does work , would i need to change anything else or would this be sufficient ?


Many Thanks
Chris
I Am A Noob But I Am Here To Learn.
Please be patient ;) ;D

*

MB Themes

Re: Force clear browser cache
« Reply #1 on: June 20, 2016, 07:46:15 AM »
@aweegander
I do not know about any method that would clean browser cache & cookies, just manually...
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

BabyDunk

  • ****
  • 161 posts
Re: Force clear browser cache
« Reply #2 on: June 20, 2016, 08:25:37 AM »
i was looking about and came across this https://www.impressivewebs.com/force-browser-newest-stylesheet/

i am not sure whether it would work with the way the css is call via osc_enqueue_style

:D
I Am A Noob But I Am Here To Learn.
Please be patient ;) ;D

*

MB Themes

Re: Force clear browser cache
« Reply #3 on: June 20, 2016, 09:16:51 AM »
@aweegander
Not sure if this approach works, if yes then:
Code: [Select]
osc_enqueue_style('style', osc_current_web_theme_url('style.css?v=1.2'));
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots