PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Tue Nov 13, 2018 4:18 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Mar 25, 2011 8:46 am 
Offline
Forum Commoner

Joined: Wed Jun 16, 2010 6:00 am
Posts: 32
I discovered while testing that my application has an issue with Opera out-of-the-box in that the default cache length for graphics is 5 hours. But I redraw my SVG files (and reuse the filename) every time the user does something.

I know how to fix this by reconfiguring Opera, but can anyone tell me in words of one syllable if there's something I can put in the svg file header to stop it happening? I tried cachecontrol="nocache" which I thought should work but it didn't help.

Hoping I can do it at this level - telling all users to reconfigure their browsers won't be much of a solution, and I'd rather not require complicated Apache configuration since I'm doing this for a third party - the more configuration which is under my control, i.e. being written to the browser by my code, the better :)


Top
 Profile  
 
PostPosted: Thu Mar 31, 2011 8:06 pm 
Offline
Moderator
User avatar

Joined: Mon Nov 03, 2003 7:13 pm
Posts: 5978
Location: Odessa, Ukraine
Quote:
But I redraw my SVG files (and reuse the filename) every time the user does something.

Simple answer - change the URI. Since there's no requirement of 1 to 1 mapping between URIs and filenames you'd just have ignore part of the uri (by putting variable part into the query string, abusing PathInfo or employing mod_rewrite).


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group