# WEBCACHE
> [HTML Version](webcache_in_set_lit.htm)
_Rewritten August 2023_
The WEBCACHE feature involves checking a web location for files that are not found in the normal search path; if found online, they are downloaded and cached locally for subsequent use. Syntax:
**.SET WEBCACHE action \{,options,...\}**
**.SET WEBCACHE REPO url**
Actions:
| **Action** | **Description** |
|------|------|
| ENABLE | Enable (for images and files subject to local cache) |
| DISABLE | Disable web cache; reset all options |
| CLEAR | Clear local cache |
| REFRESH | Clear from cache only those file(s) matching specification |
Options:
| **Option** | **Description** |
|------|------|
| PROG | download/cache programs (RUN,LIT,SBX) |
| OPENI | download/cache files opened for input |
| LOOKUP | download/cache files subject to LOOKUP |
| DLL | download DLLs to bin if writeable; else webcache |
| ATE | forward WEBCACHE options to ATE (see below) |
| ALL | same as PROG,OPENI,LOOKUP,DLL |
url:
specifies a web directory to search for missing files
**Examples**
.SET WEBCACHE ENABLE,PROG,OPENI,LOOKUP
.SET WEBCACHE REPO http://www.mysite.com/repo
**ATE vs Server WEBCACHE**
By default, WEBCACHE operates on the server side. But in many cases it makes as much sense for it to operate on the client side, which you can activate adding the ATE option to your list of SET WEBCACHE options. Note that if you want to assign different options and/or repository directory to ATE, use the following sequence:
.SET WEBCACHE REPO
.SET WEBCACHE ENABLE,,ATE \! forward options \& repo to ATE
.SET WEBCACHE REPO
.SET WEBCACHE ENABLE, \! set server options only
**See Also**
• [WEBRUN.LIT](webrun_lit.htm.md)
• [MX\_WEBCACHE](mx_webcache.htm.md)[XS](keyword-types.htm.md)
• [AG\_WEBCACHE](ag_webcache.htm.md)
**History**
2016 October, A-Shell 6.3.1529, 1531, 1532: [WEBCACHE](webcache.htm.md) function added to A-Shell.