A Simple PHP script to generate a unique hashed filename based on the actual contents of the file.
Here’s a video Tutorial and overview:https://www.youtube.com/watch?v=KHcwow_Xs7k
Why? Using a hash based name system we can be certain when we need to break cache for a user. Instead of just forcing a cache break every x hours or days. This ensures if the content ever changes the user definitely gets the latest version!
With this method we can set basically unlimited cache lengths and rest assured the user gets the latest changes.