Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion How to force browser to clear cache for JS and CSS in Elgg?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mohammed Aqeel  
View profile  
 More options Sep 16 2012, 10:07 am
From: Mohammed Aqeel <aqeel....@gmail.com>
Date: Sun, 16 Sep 2012 07:07:28 -0700 (PDT)
Local: Sun, Sep 16 2012 10:07 am
Subject: Re: How to force browser to clear cache for JS and CSS in Elgg?

You can also try another option,

   1. Define a theme version in your start.php file.
   2. Define a theme version inside your JS file.
   3. Extend the sites footer with a javascript function to cross check the
   version number of theme and the JS file.

adding query to static files can prevent caching of these files.

Regards,
Mohammed Aqeel,
Team Webgalli | http://webgalli.com/

On Sunday, September 16, 2012 1:46:53 PM UTC+5:30, Krishna Shetty wrote:

> We use elgg_load_js() and elgg_load_css() to load JS and CSS respectively.
> Is there any way to force browser to clear cache for all JS and CSS files?

> Otherwise, we need to manually clear cache every time we make some JS/CSS
> changes?

> I am looking in these posts:

> http://stackoverflow.com/questions/5498505/can-we-forcibly-clear-brow...
> http://stackoverflow.com/questions/1922910/force-browser-to-clear-cac...
> Is there any easy way to achieve the same for all CSS/JSS files in Elgg?

> Thanks,Krishna


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.