Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Cache blocking: content type: text/xml

  • 4 replies
  • 1 has this problem
  • 2 views
  • Last reply by cor-el

more options

I have an unusual request: Is there a way to prevent caching of a particular file with the content type of "text/xml", alot of these files are small and useless. I would want only a file over 25k to be saved.

For example a file with that content type wouldn't be saved to cache unless it is over 25k in size. I have 6000 of these types of files which are saved in cache_001, 002 etc.

I have an unusual request: Is there a way to prevent caching of a particular file with the content type of "text/xml", alot of these files are small and useless. I would want only a file over 25k to be saved. For example a file with that content type wouldn't be saved to cache unless it is over 25k in size. I have 6000 of these types of files which are saved in cache_001, 002 etc.

All Replies (4)

more options

There is no built-in way to do that, but an add-on might be able to do it. This one doesn't mention treating files of different sizes in different ways, but if it is otherwise effective, you could check with the developer on whether that feature could be added: BetterCache :: Add-ons for Firefox. I haven't tried it myself.

more options

Thank-you for the reply. I tried the bettercache addon, however it didn't work. I think it is only for invididual files stored on disk, and not stored in cache_001 etc.

more options

Thank-you, after doing some research, I finally got the hang of bettercache. My apologies, it does work.

Next question, I have a certain website I want to block the cache, however, its mime-type is undefined.

Looks something like this.

Filename= c1=2&c2=7352209&c3=&c4=%2Fgameshell%2Foptions_dialog&c5=&c6=&c1

Content type is blank

URL looks something like this;

http://xxx.xxxx.xxx/b?c1=2&c2=7352209&c3=&c4=%2Fgameshell%2Foptions_dialog&c5=&c6=&c15=&ns__t=1344255611974&ns_c=UTF-8&c8=World%20Golf%20Tour&c7=http%3A%2F%2Fxxx.xxx.xxx%2Fgameclient.aspx&c9=http%3A%2F%2Fxxx.xxx.xxx%2FDefault.aspx

more options

I see that you've created a new thread for your above posted question, so please continue there.