Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

This functionality was introduced in FarCry 6.2.0.

The CDN functionality encompasses many changes. Broadly speaking it is the ability to store and serve "transitory" files (e.g. CSS, images, etc) from somewhere besides the application server. Previously, FarCry's support for this kind of thing has been limited to configuring where on the web server files are stored.

The following use cases should now be supported:

  • using local file system, S3, and FTP storage interchangeably
  • configuring the 4 broad "types" of FarCry files separately (cache, images, secure files, public files)
  • migrating files from an existing location to a new location

These changes introduce the idea of a "location", which is a discrete configuration that is later referred to by name. FarCry core uses five locations (cache, images, privatefiles, publicfiles, archive), and you should consider their access characteristics when you're looking at moving to a CDN - you may decide that some of these locations shouldn't be on a CDN because of security, serving responsiveness or file access speed.

media for archived records

LocationUsed ForAccess
cacheminified JS and CSSWrite once, served immediately, files are never changed, needs to be served quickly
imagesimage formtoolWrite once or twice (when resizing), read several times as source for different sizes, needs to be served quickly
privatefilesfile formtool (secured and draft content)Moved in and out as content is published and unpublished, needs to be able to be served in a controlled fashion
publicfilesfile formtool (unsecured and approved content)Moved in and out as content is published and unpublished
archiveWrite once, rarely read, doesn't need to be served at all

To change FarCry's default behaviour you would override one (or all) of these in /projects/yourproject/config/_serverSpecificVarsAfterInit.cfm.

For more details on implementing FarCry CDN features:

  • No labels