[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ 11 ] [ 12 ] [ 13 ] [ 14 ] [ 15 ] [ 16 ] [ A ] [ B ] [ next ]

Smart Cache Manual
Chapter 14 - FAQ

May I disable my browser internal cache?

It is recommended to leave some small (5MB) the browser disk cache, browser can use this cache for caching SSL pages. If you browser has delete cache on exit option, use it. For speeding browsing use memory cache if you browser supports it (Netscape and Opera does, Microsoft not). The size of the memory cache depends on the amount of free RAM, but 1500 K is a good starting point even if your system only has 16Mb RAM.

When I disable disk cache in Netscape, some files are still cached?

Bug in browser.

How can i use SC with junkbuster?

Make proxy chain: browser -> Smart Cache -> Junkbuster. New version of Junkbuster is called privoxy.

How can i tell SC if i am online or offline?

You do not need that. If you want to force offline mode, use -local switch.

May I place SC into my archive of Internet/Java/Windows/... Tools?

Yes go ahead, SC is open source software. Place it in any archive, you can use my name/email for entry submission if you are not like to use own.

I have a 50MB cache in browser and do not want to loose its contents. May I still try SC?

Yes, SC do not delete anything from it. Your browser will be still able to use your old cached things. New things will be written to Smart Cache (by itself) and also to your browser's cache (by browser).

I want to use cache from my browser, but I want to use SC for clearing non cacheable headers and other advantages. What should I set up?

Set nocaching * , generate_lastmod yes, pragma_no_cache 1 , quick_abort_min 0 , quick_abort_max 0

What should I set to get even more caching?

Set generate_lastmod yes , pragma_no_cache 1 , remove_pragma_no_cache yes , and first number in default_refresh_pattern to non-zero (avoids another Netscape bug). Using URL blocking, Section 5.6 is good idea also. If you are only one SC user, set cache_password_protected 1 and cache_private 1.

Why SC uses deprecated Java APIs?

Because there are much faster! There is no Unicode conversion stuff, which is not needed.

I want to abort the requests and Smart Cache NOT to continue to download anything in order to have the full band width for the next requests. How should I set 'quick_abort' to do that?

quick_abort_min 0 quick_abort_max 0

What can I set in gc.cnf To prevent the garbage collector from deleting directories I want to keep forever?

The best I can think of is to specify in gc.cnf for each directory I want to keep forever (something like): urlmask url /99999999999.

Can I distribute SC on CD-ROM disk with other software? Need I a permission?

No, you can distribute unmodified SC in any way you like [10], you can sell it, place it on your webpage, burn it on CD-ROMs, even with included commercial programs. If you are ISP its OK to place it on your "startup" CDs and its OK to run SC in business environments for making money. But if you redistribute SC, you must redistribute GPL License also. If you want to distributed a modified version of Smart Cache see GPL License for some details.

Can I use SC for business purposes?

Yes, GPL allows to use it for ANY purpose. This is called freedom zero.

Can I share cached files by SC running under both Windows and Linux?

Yes, SC used the same file format under both OSes. Many users do this, just place cacheroot directory on FAT disk, seen by both OSes.

How can I run SC without opening a DOS window?

In OS/2 you can run it invisibly via detach java -norestart -ms1m scache. Scache can very easily (in all Windows versions, afaik) be started from a batch file, like so:

     @echo off
     javaw  -cp . -ms1m scache [etc... etc....]

A desktop shortcut to this batch file, with in the properties a "close-when-finished" setting, will with one mouse click activate the cache and let it run invisible in the background (if necessary, it can always be unloaded later from the Ctrl-Alt-Del dialog). If you put the same shortcut in the Startup folder, the cache will be silently started every time you bootup.

After running -gc, with cache_size 100MB, the output of java scache -gc is: Cachesize is now 94361600 bytes. But treesize the cache-directory shows only 52MB. What's happen?

You may have set incorrect block_size in gc.cnf or treesize program do not report actual bytes used, but just sums of files length. See Configuration of garbage collection, Section 4.2

Smart Cache's hit/miss ratio is too low when compared with other proxy servers, but browsing is much faster with it!

When using Smart Cache, WWW browser sends less requests than without it. If you want to get comparable numbers with other proxy caches set generate_lastmod no and you will see, how much "ratio" will be increased. This of course do not made your browsing faster.

How can I run Smart Cache as service under Windows NT?

You can run it from All Users startup. See also http://support.microsoft.com/default.aspx?scid=KB;en-us;q137890 or you can use Firedaemon program or JNT.

How can I clearly deinstall Smart Cache?

Just delete it and cached files. It do not writes anything to system directories, registers or other strange places.

Java runtime do not works after installation on Windows NT! I must reboot the machine for getting Java to work. After reboot everything works fine.

This is probably a very common Windows NT (maybe 95/98/00 too?) problem. This was reported by many users. You must report this program to your Software or Operation System Vendors.

Is recommended to run caching DNS server for improving SC performance?

SC do not needs it, Sun Java itself caches all DNS responses, see Java DNS caching bug/feature, Section 12.1.

Is possible for Internet users to break into Smart Cache and get access to our local LAN?

You can set BindAddress (Setting the bindaddress, Section 9.10) to your local LAN IP address to prevent Internet users from doing this. Using Fail *your.local.lan* works also. But BindAddress is faster, safer and cleaner. You can look also on Proxy access control, Section 9.11.

When Smart Cache uses If-Modified-Since ?

Only if requested page has Last-Modified date. If pages has Etag, Smart Cache uses If-none-match.

What about Expire: headers with dates like 1.1.1970?

Smart Cache will use it as Pragma: no-cache. If pragma_nocache is set to non-zero, expire will be ignored and removed from server response.

Jikes is faster java compiler, what about to compile SC with them?

Jikes compiles faster, but faster is only execution of the compiler. Jikes do not generate code which runs faster than code generated by javac. Jikes can be downloaded from AlphaWorks IBM site for free. Source code for Jikes is available also. Jikes is written in C++. Some virtual machines has problems when running jikes compiled classes, using javac is recommended.

I have heard that there are some Java compilers, which are able to compile Java to native code, which runs faster. Will be such native versions distributed?

If you want, try it and distribute native versions yourself. See Making native executable, Section 9.4

Is Smart Cache better than other Proxy servers? There are many of them.

Yes there are, especially for Windows some of them are mentioned in Other off line browsing solutions, Section 1.4. Try some of them and find it yourself. Better or worse are relative terms. Use server which works the best for YOU.

In gc.cnf for HPFS there is a suggested block size of 1024 for HPFS, but the sector size on HPFS is 512 byte and there is no sector-clustering (or with other words a cluster-size of 1) for HPFS.

HPFS really uses 512 bytes long file blocks, but every (even empty) file uses also one sector (512 bytes) FNODE and directory entry (ignoring their size). Summary: HPFS uses 512+blocks*512 per file. Because Smart Cache can not handle this configuration, is better to use 1024 block_size.

It is a shame, that this is written in Java...

No. Many people use this software on Windows platform. I do not use it and hardly will ever write software for running only on it. It was coded under OS/2, now I am coding that under Linux and use this on Windows, Mac, OS/2 and Linux.

Are not Java program so slow for normal usage?

GUI Java applications are a quite slow. At least on my 486/33 you will not have too much fun with it. But non-GUI Java programs (Windows based people often says console or DOS) are much faster than other interpreted languages (such as Perl or Python). There are fast as many C programs. See Proxy cache Benchmarks, Section 9.2

What about to rewrite it to C/C++ ?

I will not do that, it is waste of my time. If you want C++ performance you can Making native executable, Section 9.4. In fact Java language is not so slow, some caches coded in C are slower than this. [11]

Sources are available, you can rewrite it yourself or pay someone to doing it for you. This is one of key benefits of Open Source Software model.

I have 2 scache programs on 8080 and on 8090 ports whith different filter rules at the same time. Can I make one cache folder for both program?

Some ppl are doing that. In worst case when both caches are working with the same directory at same time; some files will gets cached twice and some lost due to unsynchonized .cacheinfo writings. If only one scache writes into folder, it is 100% ok. If you do not plan to offline browse, these writing conflicts are okay. Who cares on leased line about if some HTMLs or GIFs are loaded twice, there are small in size. Better is chain them: filtering sc with -ro -> non filtering sc -> Internet.

[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ 11 ] [ 12 ] [ 13 ] [ 14 ] [ 15 ] [ 16 ] [ A ] [ B ] [ next ]

Smart Cache Manual


Radim Kolar hsn_nospam_at.sendmail.dot.cz