Sign in to follow this  
Pallav

Problem with Cache

Recommended Posts

Hi,

We're using the JavaScript dataURL method, and we're passing some parameters in the data URL, but it looks like FusionCharts is also adding another parameter called FCTime with a date/time value into the list of parameters.

We DO NOT want this extra parameter to be added - it is possible to prevent it?

Thanks,

Andy

Share this post


Link to post
Share on other sites

I'd also like to modify the code to disable the appendage of the FCTime variable, but I'm not a Javascript guru, and I can't find the specific location in the .js file where the querystring is being added. Can you point me in the right direction for disabling this?

 

 

 

Thanks,

 

M

Share this post


Link to post
Share on other sites

Is there any way to prevent the generation of that parameter in the request? It breaks the cache, removing any possibility of setting etag or cache control headers.

Share this post


Link to post
Share on other sites

This is a major bug in my humble opinion. Especially since this "feature" cannot be disabled in JavaScript.

 

 

 

Please remove the code from the charts and add it to the FusionCharts.js:

 

--- FusionCharts.js	2008-04-25 14:22:38.000000000 -0700

+++ FusionCharts.js-NEW	2008-04-25 14:22:35.000000000 -0700

@@ -125,6 +125,7 @@

		return swfNode;

	},

	setDataURL: function(strDataURL){

+		strDataURL += '&FCTime='+(new Date()).getTime();

		//This method sets the data URL for the chart.

		//If being set initially

		if (this.initialDataSet==false){

 

 

 

Please? :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this