Static Content

Static Content

  • Implement a CDN quickly
  • Change URLs for any static file
  • Simple performance helper

The Static Content plugin allows you to replace the URL to your images or CSS-files with another URL. While you have the responsibility to make sure that this URL is actually serving the same images and CSS files, this allows for quick integration of static webservers or CDNs in Joomla.

Cost Free
Current version 1.2.0 (Stable)
Requirements Joomla 2.5 (supported until June 2015)
Joomla 3.0 - Joomla 3.4
PHP 5.4 or higher
PHP 5.4.0 or higher
Download Login to access this download
Support Support Forum
License GNU/GPL (General Public License)

Getting started

  • Install the plugin in the Extension Manager
  • Enable the plugin in the Plugin Manager
  • Configure your static server in the plugin settings

Benefits

  • Easy to setup
  • Helping you to implement CDNs quickly

Usage

To a minimum you need to configure Unsecure URL for the plugin to do anything useful. This URL has to start with http:// and should host an environment that mirrors your normal Joomla! environment. For instance, if your Joomla! template-images are located here:

http://MYJOOMLA/templates/mytemplate/images

Then your static server should contain the same folder templates/mytemplate/images.

When entering a value under Secure URL, make sure this is a SSL-based URL. Also consider using a trusted SSL-certificate for both the Joomla! site as the static server (or CDN).

Other options allow you to determine which resources should be moved to the static server:

  • Images in the images/ folder
  • All kinds of content in the media/ folder
  • Template images, JavaScript or CSS-files
  • Joomla! caching files
  • Joomla! includes-folder (containing some core JavaScript files)

There are some things you need to consider when configuring this. For instance, when your static server is on a different domain, JavaScript might not be executed properly because of browser security. Depending on which scripts you try to run where, this might cause issues.

When loading CSS files from the static server, note that you also might need to copy the neccessary image-files. Because the CSS-files will be served from the same directory-structure as within Joomla!, relative path-links will still work.

Note that the option to load Joomla! caching files from a static server, does not include the caching-files used by PHP-files. It only deals with caching-files used by JavaScript or CSS compression techniques. PHP-files are only dealt with by the webserver, outside of the scope of this plugin.


Programming Joomla Plugins book

Take control of your Joomla plugins

When building Joomla sites, you can fix small issues with plugins. If a plugin does not fit your needs, instead of searching for another plugin, why not fix things yourself? This is what open source is about.

With our Programming Joomla Plugins book, you get insight into plugins & events. You learn how plugin code works, so that you can insert your own tricks. Coding is fun. And this book shows it is not that hard to get started!

Get your book now

Related services

Performance Tuning

Performance Tuning

Everybody wants a fast site. But this requires lots of technical knowledge. Why not hire the experts, so you can focus on webdesign instead?

More extensions

ScriptMerge

ScriptMerge

Make your Joomla site fly with less HTTP requests
New Relic

New Relic

Add New Relic monitoring to your Joomla sites