> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.stylishcostcalculator.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# W3 Total Cache: Fixing JavaScript errors on pages with Stylish Cost Calculator

Follow the steps to fix JavaScript errors on frontend pages cached/optimized by W3 Total Cache and has 'Stylish Cost Calculator' forms.

### Go to W3 Total Cache Settings

![W3 Total Cache Settings](https://storage.crisp.chat/users/helpdesk/website/c5f0153cc3f4b000/image_i2l9uw.png)

### Navigate to JavaScript Cache Settings

![](https://storage.crisp.chat/users/helpdesk/website/c5f0153cc3f4b000/chromennomixguaf_1lkdf95.gif)

### Exclude Stylish Cost Calculator Files
If you use Stylish Cost Calculator Premium, use the following pattern in the exclusions list

```bash
/wp-content/plugins/stylish-cost-calculator-premium/dist/frontend/scc-js-frontend-bundle.js
```

![](https://storage.crisp.chat/users/helpdesk/website/c5f0153cc3f4b000/image_1axjpc1.png)

If you are using Stylish Cost Calculator free version, use the following

```bash
/wp-content/plugins/stylish-cost-calculator/assets/js/scc-frontend.js
```