You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Major Péter <ma...@sch.bme.hu> on 2011/01/24 10:24:49 UTC

Timestamp strategies on resources

Hi,

currently the timestamp is appended to filenames if caching is enabled, 
like <filename>-ts<epoch>.<extension>

During the process of migrating wicketstuff-tinymce to Wicket 1.5 it 
occured to me, that tinymce recognizes it's baseurl based on it's filename:
https://github.com/wicketstuff/core/blob/master/jdk-1.5-parent/tinymce-parent/tinymce/src/main/java/wicket/contrib/tinymce/tiny_mce/tiny_mce_src.js#L53

So if I want to make tinymce to work, I have to modify the regexp's in 
that if, so tinymce will be able to find it's baseurl and load 
additional resources from there.
Is there a way to use a different caching naming, like 
<filename>.<extension>?<epoch> (like Rails does)?

Thanks,
Peter

Re: Timestamp strategies on resources

Posted by Peter Ertl <pe...@gmx.org>.
fixed with WICKET-3389 (https://issues.apache.org/jira/browse/WICKET-3389)

Am 24.01.2011 um 16:47 schrieb Igor Vaynberg:

> currently there is no configuration option for that, please open an RFE
> 
> -igor
> 
> 2011/1/24 Major Péter <ma...@sch.bme.hu>:
>> Hi,
>> 
>> currently the timestamp is appended to filenames if caching is enabled, like
>> <filename>-ts<epoch>.<extension>
>> 
>> During the process of migrating wicketstuff-tinymce to Wicket 1.5 it occured
>> to me, that tinymce recognizes it's baseurl based on it's filename:
>> https://github.com/wicketstuff/core/blob/master/jdk-1.5-parent/tinymce-parent/tinymce/src/main/java/wicket/contrib/tinymce/tiny_mce/tiny_mce_src.js#L53
>> 
>> So if I want to make tinymce to work, I have to modify the regexp's in that
>> if, so tinymce will be able to find it's baseurl and load additional
>> resources from there.
>> Is there a way to use a different caching naming, like
>> <filename>.<extension>?<epoch> (like Rails does)?
>> 
>> Thanks,
>> Peter
>> 


Re: Timestamp strategies on resources

Posted by Igor Vaynberg <ig...@gmail.com>.
currently there is no configuration option for that, please open an RFE

-igor

2011/1/24 Major Péter <ma...@sch.bme.hu>:
> Hi,
>
> currently the timestamp is appended to filenames if caching is enabled, like
> <filename>-ts<epoch>.<extension>
>
> During the process of migrating wicketstuff-tinymce to Wicket 1.5 it occured
> to me, that tinymce recognizes it's baseurl based on it's filename:
> https://github.com/wicketstuff/core/blob/master/jdk-1.5-parent/tinymce-parent/tinymce/src/main/java/wicket/contrib/tinymce/tiny_mce/tiny_mce_src.js#L53
>
> So if I want to make tinymce to work, I have to modify the regexp's in that
> if, so tinymce will be able to find it's baseurl and load additional
> resources from there.
> Is there a way to use a different caching naming, like
> <filename>.<extension>?<epoch> (like Rails does)?
>
> Thanks,
> Peter
>