To achieve the best results, it is recommended to use Disk cache with rewrites. If your site is running on Nginx server, you will need to add the generated rewrite rules to Nginx config. To find generated rules, go to Swift Performance Dashboard, and click to Show Rewrite Rules

Copy the generated rewrite rules, and add it to Nginx config inside the server section

server {
  ...
  ###BEGIN Swift Performance###
  ...
  ###END Swift Performance### 
  ...
}

Once you added Swift Performance rules to Nginx config, test the config file with the following command:

nginx -t

If the test is done, and the rules were added to config file properly, you can reload Nginx:

service nginx reload