[Templating] secure base urls, version format #546

Closed
wants to merge 2 commits into
from

Projects

None yet

1 participant

@kriswallsmith
Contributor

This is my latest patch for adding alternate base asset URLs for HTTP and SSL requests. I've reworked my previous patch so we retain the formal asset package class now. I've also moved the cache-busting logic to the asset package class, which now accepts a version format argument. This defaults to %s?%s which is the same as the current behavior (i.e. css/main.css?1234) but you can configure an alternate format if you know what you're doing (i.e. release-%2$s/%1$s would output release-1234/css/main.css).

kriswallsmith added some commits Apr 13, 2011
@kriswallsmith kriswallsmith [Templating] refactored AssetsHelper and AssetPackage, added AssetPac…
…kageInterface::versionize($path) and implemented it using a configurable format string
3160cc3
@kriswallsmith kriswallsmith [FrameworkBundle] added templating config for version_format and alte…
…rnate HTTP/SSL base URLs
d4932e6
@kriswallsmith
Contributor

i'm closing this and will break it into smaller branches

@ghost
ghost commented May 28, 2011

hi @kriswallsmith, anything new about option to configure version format?

@kriswallsmith
Contributor

Yes, #1047.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment